Skip to content

Commit

Permalink
Fix map cards
Browse files Browse the repository at this point in the history
- leaked achor CSS with !Important
- Reduced a layer of div inside anchor
- Fixed squised images
- Fixed completely broken Card display in mobile view
  • Loading branch information
Samuel-Therrien-Beslogic committed Nov 9, 2024
1 parent 85f4e28 commit 09854b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 1 addition & 5 deletions canopeum_frontend/src/pages/Map.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
@import '../App.scss';

a,
a:hover {
text-decoration: none !important;
}

#map-page-row-container {
padding: 0 2rem;
}
Expand Down Expand Up @@ -54,5 +49,6 @@ a:hover {
.map-site-image {
border-radius: $border-radius 0 0 $border-radius;
width: unset;
object-fit: cover;
}
}
20 changes: 12 additions & 8 deletions canopeum_frontend/src/pages/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,16 @@ const Map = () => {
>
<div className='py-3 d-flex flex-column gap-3'>
{sites.map(site => (
<Link id={`${site.id}`} key={site.id} to={appRoutes.siteSocial(site.id)}>
<div
className={`card ${
selectedSiteId === site.id && 'border border-secondary border-5'
}`}
style={{ height: '150px' }}
<div
className={`card ${
selectedSiteId === site.id && 'border border-secondary border-5'
}`}
key={site.id}
>
<Link
className='stretched-link list-group-item-action'
id={`${site.id}`}
to={appRoutes.siteSocial(site.id)}
>
<div className='row g-0 h-100'>
<div className='col-lg-4'>
Expand All @@ -144,8 +148,8 @@ const Map = () => {
</div>
</div>
</div>
</div>
</Link>
</Link>
</div>
))}
</div>
</div>
Expand Down

0 comments on commit 09854b0

Please sign in to comment.