mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
Fix mobile horizontal overflow from deck.gl legend (#987)
* fix(mobile): prevent deckgl legend overflow * fix: clean up redundant CSS in mobile legend override Remove redundant max-width (left/right already constrains) and fix gap shorthand overwriting row-gap (use gap: 6px 8px instead).
This commit is contained in:
@@ -13566,6 +13566,24 @@ a.prediction-link:hover {
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile: prevent horizontal overflow from deck.gl legend */
|
||||
@media (max-width: 520px) {
|
||||
.deckgl-legend {
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
transform: none;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 8px;
|
||||
padding: 6px 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.deckgl-legend .legend-item {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Scrollbar styling for layer toggles */
|
||||
.deckgl-layer-toggles::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
|
||||
Reference in New Issue
Block a user