Skip to content

Commit

Permalink
More various fixes
Browse files Browse the repository at this point in the history
- Text that shouldn't always be uppercase
- Use username in user management page
- Default map zoom is now more zoomed out
  • Loading branch information
Samuel-Therrien-Beslogic committed Dec 3, 2024
1 parent 1b8c3dc commit 6121131
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion canopeum_frontend/src/components/social/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const PostCard = ({ post, showActions }: Props) => {
/>
</Link>
<div className='d-flex flex-column'>
<h6 className='text-uppercase fw-bold mb-1'>
<h6 className='fw-bold mb-1'>
<Link to={appRoutes.siteSocial(post.site.id)}>{post.site.name}</Link>
</h6>
<Link className='text-muted initialism' to={appRoutes.postDetail(post.id)}>
Expand Down
1 change: 0 additions & 1 deletion canopeum_frontend/src/locale/en/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default {
'table-row-13': 'Types of seeds collected',
'last-update': 'Last Update',
visitors: 'Visitors',
sponsored: 'Sponsored',
'unnamed-site': 'Unnamed site',
'site-save-success': 'Site saved successfully',
'site-save-error': 'Error saving Site',
Expand Down
1 change: 0 additions & 1 deletion canopeum_frontend/src/locale/fr/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default {
'table-row-13': 'Types de graines collectées',
'last-update': 'Dernière Mise à Jour',
visitors: 'Visiteurs',
sponsored: 'Sponsorisé',
'unnamed-site': 'Site sans nom',
'site-save-success': 'Site saved successfully',
'site-save-error': 'Error saving Site',
Expand Down
2 changes: 1 addition & 1 deletion canopeum_frontend/src/pages/MapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getSiteTypeIconKey, type SiteTypeID } from '@models/SiteType'
import type { SiteMap } from '@services/api'
import { getApiBaseUrl } from '@services/apiSettings'

const PIN_FOCUS_ZOOM_LEVEL = 15
const PIN_FOCUS_ZOOM_LEVEL = 12
const MAP_DISTANCE_ZOOM_MULTIPLIER = 20

/**
Expand Down
2 changes: 1 addition & 1 deletion canopeum_frontend/src/pages/UserManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const UserManagement = () => {
<div className='col-12 col-md-5 col-lg-3 pb-4'>
<div className='settings-left-nav-menu card py-3 px-4'>
<div className='py-3 d-none d-md-block'>
<h4 className='text-center'>CANOPEUM</h4>
<h4 className='text-center'>{currentUser?.username}</h4>
</div>

<div className='d-flex flex-column gap-2'>{tabsDisplay()}</div>
Expand Down

0 comments on commit 6121131

Please sign in to comment.