Hi, i am using the map widget, and i implemented some custom code so the map list wouldnt get cropped on destktop sizes. the code was working for a while, but now it is not anymore and i cant figure out what the issue is, here is my current code to ensure the map takes a max 0f 600px on desktop (so we can see the load more button while scrolling the list) and then 100vh on mobile. Any ideas? thanks!
/* ---------------- Desktop & Default ---------------- */
.global-styles,
[class*=“widget__Container-sc”] {
height: 600px;
}
.active [class*=“marker__Container-sc”] [class*=‘marker__MarkerBody-sc’] path {
fill: white !important;
}
/* ---------------- Mobile Layout ---------------- */
@media (max-width: 768px) {
/* Let the widget adapt to viewport on mobile */
[class*=“widget__Container-sc”] {
height: 100vh !important;
max-height: 100vh;
}
/* Stack map + list vertically */
[class*=“mobile-layout__Container-sc”] {
display: flex !important;
flex-direction: column !important;
height: 100%;
}
/* Map stays visible, fixed height */
[class*=“mobile-layout__MapContainer-sc”] {
order: 1;
height: 300px;
flex-shrink: 0;
}
/* List takes remaining space and scrolls */
[class*=“mobile-layout__Directory-sc”] {
order: 2;
flex-grow: 1;
overflow-y: auto;
margin-top: 20px;
}
/* Remove swap button */
[class*=“FloatingButton__FloatingButtonContainer-sc”] {
display: none !important;
}
}