mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-03 13:32:21 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
|
||||
|
||||
def test_sidebar_chat_list_uses_content_height_when_collapsed():
|
||||
css = (ROOT / "static/style.css").read_text(encoding="utf-8")
|
||||
desktop = css.split("#sessions-section #session-list {", 1)[1].split("}", 1)[0]
|
||||
mobile = css.split("#sessions-section #session-list {", 2)[2].split("}", 1)[0]
|
||||
|
||||
assert "\n height: min(42vh, 420px);" not in desktop
|
||||
assert "flex: 0 0 auto;" in desktop
|
||||
assert "max-height: min(42vh, 420px);" in desktop
|
||||
assert "\n height: min(34vh, 300px) !important;" not in mobile
|
||||
assert "flex: 0 0 auto !important;" in mobile
|
||||
Reference in New Issue
Block a user