mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-14 12:12:20 +02:00
17 lines
654 B
Python
17 lines
654 B
Python
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
|