fix(ui): contain email split divider (#1194)
This commit is contained in:
parent
f96edfe5ca
commit
0db441b191
2 changed files with 19 additions and 0 deletions
|
|
@ -14577,6 +14577,7 @@ body:has(.doc-version-panel:not(.hidden)) .hamburger-btn {
|
||||||
z-index: 260 !important;
|
z-index: 260 !important;
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
transform: none !important;
|
transform: none !important;
|
||||||
|
border-left: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
18
tests/test_email_split_border_css.py
Normal file
18
tests/test_email_split_border_css.py
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
CSS = (Path(__file__).parents[1] / "static" / "style.css").read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
|
||||||
|
def _rule(selector: str) -> str:
|
||||||
|
return CSS.split(selector, 1)[1].split("}", 1)[0]
|
||||||
|
|
||||||
|
|
||||||
|
def test_email_split_document_pane_drops_duplicate_border():
|
||||||
|
rule = _rule("body.email-doc-split-active.doc-view .doc-editor-pane {")
|
||||||
|
assert "border-left: none !important;" in rule
|
||||||
|
|
||||||
|
|
||||||
|
def test_email_split_panel_keeps_visible_seam():
|
||||||
|
rule = _rule(".modal.email-snap-left .modal-content {")
|
||||||
|
assert "border-right: 1px solid var(--border);" in rule
|
||||||
Loading…
Add table
Reference in a new issue