Skip to content

fix(tooltip): stable hover, elevated surface, seamless arrow#905

Merged
mremond merged 1 commit into
mainfrom
fix/tooltip-hover-stability
Jul 7, 2026
Merged

fix(tooltip): stable hover, elevated surface, seamless arrow#905
mremond merged 1 commit into
mainfrom
fix/tooltip-hover-stability

Conversation

@mremond

@mremond mremond commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Fixes three issues with the shared Tooltip (surfaced on the icon-rail nav tooltips):

  • Vanished when the main view rendered. The scroll-dismiss used a capture-phase window scroll listener that fired for any scroll — so the message list auto-scrolling to the bottom on view mount killed a visible tooltip. Now it only dismisses when the scrolled element actually contains the trigger. The same over-broad pattern in UserInfoPopover got the identical guard.
  • Felt invisible on very dark backgrounds. The tooltip used bg-fluux-sidebar, only one step above the chat content, so it read only via a faint border/shadow. Switched to the app's elevated float surface (bg-fluux-float) — the same surface popovers/menus use — so it clearly reads in dark mode and stays consistent in light mode.
  • Arrow rendered as a broken "connection to the icon." Replaced the borderless CSS triangle (invisible on dark) with a seamless half-diamond: a rotated square painted over the bubble with a border on only its two outer edges, so the arrowhead is a continuation of the bubble outline with no internal seam.

- Scope the scroll-dismiss to scrolls whose target holds the trigger, so
  an unrelated scroll (e.g. the message list auto-scrolling to bottom
  when the main view mounts) no longer yanks a visible tooltip away.
  Applied the same guard to UserInfoPopover.
- Use the elevated float surface (bg-fluux-float) instead of the sidebar
  color so tooltips read clearly against very dark backgrounds.
- Rebuild the arrow as a seamless half-diamond: a rotated square painted
  over the bubble with a border only on its two outer edges, replacing
  the borderless triangle that looked broken and vanished on dark.
@mremond mremond added this to the 0.17.1 milestone Jul 7, 2026
@mremond mremond merged commit 6938f4e into main Jul 7, 2026
3 checks passed
@mremond mremond deleted the fix/tooltip-hover-stability branch July 7, 2026 17:47
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