Compact mobile map theme selection
This commit is contained in:
@@ -27,6 +27,12 @@ def test_mobile_overflow_hardening_css_contracts() -> None:
|
||||
explorer_mobile_rule = explorer_mobile_css.split(".geo-explorer-layout", 1)[1]
|
||||
assert "display: block;" in explorer_mobile_rule.split("}", 1)[0]
|
||||
|
||||
compact_mobile_css = css.rsplit("@media (max-width: 620px)", 1)[1]
|
||||
compact_theme_rule = compact_mobile_css.split(".geo-theme-list {", 1)[1].split("}", 1)[0]
|
||||
assert "max-height: 16rem;" in compact_theme_rule
|
||||
assert "overflow-y: auto;" in compact_theme_rule
|
||||
assert "overscroll-behavior-y: contain;" in compact_theme_rule
|
||||
|
||||
|
||||
def test_long_identifier_wrapping_contracts() -> None:
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user