diff --git a/routers/focus.py b/routers/focus.py index 9420f64..d21ad0a 100644 --- a/routers/focus.py +++ b/routers/focus.py @@ -71,7 +71,7 @@ async def focus_view( dl = item.get("domain_name") or "General" dc = item.get("domain_color") or "" if dk not in domain_map: - domain_map[dk] = {"label": dl, "color": dc, "rows": []} + domain_map[dk] = {"key": dk, "label": dl, "color": dc, "rows": []} domain_map[dk]["rows"].append(item) hierarchy = list(domain_map.values()) diff --git a/static/style.css b/static/style.css index 01fc77c..b30a62e 100644 --- a/static/style.css +++ b/static/style.css @@ -1107,6 +1107,9 @@ a:hover { color: var(--accent-hover); } transition: width 0.3s; } +/* ---- Focus Domain Toggle ---- */ +.focus-domain-header:hover td { background: var(--surface3); } + /* ---- Focus Drag-and-Drop ---- */ .focus-drag-row { cursor: grab; } .focus-drag-row.dragging { opacity: 0.4; background: var(--accent-soft); } diff --git a/templates/focus.html b/templates/focus.html index 8728beb..c3f1122 100644 --- a/templates/focus.html +++ b/templates/focus.html @@ -22,14 +22,18 @@ {% for domain in hierarchy %}
-