Skip to content

Commit

Permalink
Merge pull request #1044 from the-hideout/formatting-fixes
Browse files Browse the repository at this point in the history
Fix filter z-index, map height
  • Loading branch information
Razzmatazzz authored Feb 6, 2025
2 parents 21f4ea1 + b426af5 commit 900d6ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ div.tippy-box[data-placement^='right'] > .tippy-arrow::before {
margin: 0;
}

.filter-wrapper.open {
z-index: 2;
}




Expand Down
5 changes: 4 additions & 1 deletion src/pages/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@ function Map() {
const [mapHeight, setMapHeight] = useState(500);
useLayoutEffect(() => {
function updateSize() {
let viewableHeight = window.innerHeight - document.querySelector('.navigation')?.offsetHeight || 0;
const menuHeight = document.querySelector('.navigation')?.offsetHeight || 0;
const bannerHeight = document.querySelector('.MuiBox-root')?.offsetHeight || 0;
const cookieConsentHeight = document.querySelector('.CookieConsent')?.offsetHeight || 0;
let viewableHeight = window.innerHeight - menuHeight - bannerHeight - cookieConsentHeight;
if (viewableHeight < 100) {
viewableHeight = window.innerHeight;
}
Expand Down

0 comments on commit 900d6ee

Please sign in to comment.