Skip to content

fix(sidebar): make project row hover icons clickable and non-overlapping#2161

Open
i-trytoohard wants to merge 1 commit into
AgentWrapper:mainfrom
i-trytoohard:fix/sidebar-hover-icons-unclickable-overlapping
Open

fix(sidebar): make project row hover icons clickable and non-overlapping#2161
i-trytoohard wants to merge 1 commit into
AgentWrapper:mainfrom
i-trytoohard:fix/sidebar-hover-icons-unclickable-overlapping

Conversation

@i-trytoohard

Copy link
Copy Markdown
Contributor

Summary

Fixes three bugs with the project row hover action icons (dashboard, orchestrator, kebab menu) in the sidebar.

Reported by @aditi in #bug-triaging: "the 3 icons on the session show up while hovering but can't click on it. also they appear only for the second session not the first"

Bug 1 — Icons overlap text

padding-right: 78px on hover was insufficient for 3 icons (24px × 3) + 2 gaps (1px × 2) + 6px right offset = 80px needed. The project name text ran under the icons.

Fix: Bumped to 84px.

Bug 2 — Icons not clickable

The session count badge (.proj-count) faded to opacity: 0 on hover but kept pointer-events: auto. The invisible count span sat on top of the action icons and intercepted clicks.

Fix: Added pointer-events: none to the count on hover.

Bug 3 — Icons only work on the second project row

The absolute-positioned actions container (.proj-actions) had no z-index. Session rows below it in the DOM have position: relative (creating stacking contexts that paint on top). When the first project is expanded with sessions underneath, those session rows' stacking context covered the project row's action icons, intercepting hover/click events.

Fix: Added z-index: 10 to .project-sidebar__proj-actions.

Test Plan

  • pnpm --filter @aoagents/ao-web typecheck — passes
  • pnpm --filter @aoagents/ao-web build — passes
  • Visual: hover a project row with expanded sessions — all 3 icons visible, clickable, not overlapping text
  • Visual: hover a project row without expanded sessions — all 3 icons visible, clickable
  • Visual: icons appear on ALL project rows, not just the second one

Changed Files

  • packages/web/src/app/mc-sidebar.css — 3 CSS fixes (8 insertions, 2 deletions)

Three bugs in mc-sidebar.css prevented the project row action icons
(dashboard, orchestrator, kebab menu) from working properly:

1. Icons overlap text: padding-right was 78px but 3 icons (24px each)
   + gaps + offset need ~80px. Bumped to 84px.

2. Icons not clickable: the session count badge faded to opacity:0 on
   hover but kept pointer-events:auto, intercepting clicks at the icon
   boundary. Added pointer-events:none.

3. Icons only work on the second project row: the absolute-positioned
   actions container had no z-index, so session rows (position:relative,
   later in DOM) painted on top and blocked hover/click. Added z-index:10.

Reported by aditi in #bug-triaging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant