mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 09:28:56 +00:00
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)
17 lines
482 B
Python
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
|