Files
agent-zero/tests/test_webui_topbar_stack_static.py
linkliti 8ce6eb2c8c fix(projects): keep the project dropdown reachable in short windows
The dropdown had a flat 70vh cap, so in a short window lower project rows fell past the viewport. The dropdown now sizes itself from the trigger position on open and on window resize, flooring at zero like the model switcher, with the shared dropdown-menu scrolling. The top bar container stacks above the composer so the open dropdown paints over the chat input, and the mobile sidebar overlay stays one layer above the top bar.

Validation: pytest tests/test_webui_project_selector.py (2 passed); pytest tests/test_webui_topbar_stack_static.py -q (1 passed)
2026-11-28 13:13:11 +03:00

17 lines
482 B
Python

from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parents[1]
def read(*parts: str) -> str:
return (PROJECT_ROOT / Path(*parts)).read_text(encoding="utf-8")
def test_top_bar_stacks_above_composer_below_mobile_overlay():
css = read("webui", "index.css")
assert "z-index: 1002" in css.split("#time-date-container")[1].split("}")[0]
overlay_block = css.split(".sidebar-overlay {", 1)[1].split("}", 1)[0]
assert "z-index: 1003" in overlay_block