Harden mobile workbench overflow
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_mobile_overflow_hardening_css_contracts() -> None:
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
assert "overflow-x: hidden;" in css
|
||||
assert ".workbench-shell" in css
|
||||
assert "max-width: 100vw;" in css
|
||||
assert ".workbench-sidebar nav" in css
|
||||
assert ".workspace-nav-cluster" in css
|
||||
assert ".inspector-tabs" in css
|
||||
assert "repeat(2, minmax(0, 1fr))" in css
|
||||
assert "overflow-x: clip;" in css
|
||||
assert "overscroll-behavior-x: contain;" in css
|
||||
|
||||
|
||||
def test_long_identifier_wrapping_contracts() -> None:
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
assert ".quality-check-dataset-link" in css
|
||||
assert ".quality-score-row strong" in css
|
||||
assert ".inspector-field strong" in css
|
||||
assert "overflow-wrap: anywhere;" in css
|
||||
assert "word-break: break-word;" in css
|
||||
Reference in New Issue
Block a user