Skip to content

Keep a notification's buttons still when hovering opens its text - #20069

Open
jaapie wants to merge 1 commit into
omacom:quattrofrom
jaapie:notification-body-open-with-buttons
Open

jaapie wants to merge 1 commit into
omacom:quattrofrom
jaapie:notification-body-open-with-buttons

Conversation

@jaapie

@jaapie jaapie commented Nov 25, 2026 •

Copy link
Copy Markdown

What changes

A card shows two lines of its text and opens to eight on hover (when it is the only card) or when its deck opens. The button bar sits along the card's bottom edge, so on a card with buttons and a longer body the bar slides down as the pointer reaches for it: the click misses, or lands on the text and activates the card instead. A sign-in approval from Chrome (Approve / Deny under a few lines of detail) is where I keep hitting it.

A card with buttons now shows its text open from the start, so hover has nothing to grow and the bar stays where the pointer is heading. Those are also the cards you read before choosing. Cards without buttons are unchanged. The rule moves to Delivery.bodyOpen, with a test, and docs/notifications.md says so.

This is a different movement from #19223 / #18683 / #17785 / #18353, which are about the bar hiding and showing at a card's edge; this one is the body growing under a pointer that is already on the card. The two together are what it takes for the buttons to stay still: with only this change, the bar still flickers at the bottom edge as #19223 describes.

Verification

  • bash test/shell.d/notifications-test.sh: passes. The new check in logic.cjs fails on quattro (no Delivery.bodyOpen) and passes here.
  • bash test/shell.d/qml-text-format-test.sh: passes.
  • In the running shell, one critical toast with a six-line body and two --action buttons, captured at rest and after omarchy-shell notifications expand (hovering the front card as the pointer would). Before: the bar drops about 48 px on hover. After: the card is open at rest and the bar does not move. A second toast from another sender below it was unaffected.
  • With this change and Stop notification buttons flickering at a card's edge and on leaving #18683 applied to the 4.5.0 notifications plugin (as a local clone), I tested a critical card with a long body and two --action buttons by hand: the buttons stay put while the pointer moves over them and along the bottom edge, and a card without buttons still opens on hover as before.
  • Not checked: a collapsed stack of several cards with buttons from the same sender (cards behind the front are drawn at the front card's height, so an open body behind it stays hidden, but I haven't captured it).

Screenshots

Top row before, bottom row after; left at rest, right hovered.

before-after

🤖 Generated with Claude Code

A card shows two lines of its text and opens to eight when hovered.
The button bar sits along the card's bottom edge, so on a card with
buttons the bar slid down as the pointer reached for it, and the click
missed or landed on the text.

A card with buttons now shows its text open from the start, so hover
has nothing to grow. Those are also the cards read before choosing.
The rule lives in Delivery.bodyOpen with a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable defects were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Cards with buttons now open their text immediately, so hovering does not grow the text and push the buttons down.

  • Notification cards with buttons show their text open from the start.

Reviewed the code paths without running tests or capturing the UI.

Reviews (2) · Last reviewed commit: "fix: keep notification buttons still on ..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Nov 25, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High reproduced this on a disposable Omarchy ISO worker: hovering a six-line notification moved its buttons down 64 px on quattro; at 1c16cc7110b63f1ff3cdeb99c24ff21f0217757d they stayed in place. Restoring the original Toast.qml brought the movement back. Cards without buttons still expand on hover; collapsed and closing stacks were also checked. The CLI suite, notification tests, and QML text-format tests passed (163 checks total).

No concrete defect found. Opus 5.5 High and muse-wonder via pi (thinking high) agreed with this review; independence is not guaranteed.

This addresses body growth separately from the edge-hover flicker in #19223 and #18683. The remaining call is whether every card with buttons should show up to eight lines at rest, including copy-code cards. Waiting on the maintainer’s decision on that layout policy.

Checkpoint Base This head
Pointer outside Base: two body lines, buttons at their initial height Head: six body lines visible before hover
Pointer over card Base: body opens and buttons move down 64 px Head: buttons keep their initial position after hover

The same notification and crop are used throughout; the sequence checks movement caused by body expansion.

@chessing234

Copy link
Copy Markdown
Contributor

@dhh @omarchybot keeping notification buttons still when hover opens the text is in #21030. A card with buttons opens its text immediately, so the hover growth does not walk the buttons out from under the pointer. The logic test still asserts that.

Please consider closing this as superseded only after #21030 is accepted. Leaving the close to you.

@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High and Opus 5.5 High compared the two diffs. #21030 carries the same button-stability patch, test, and documentation in 50b087b052. This PR applies cleanly to quattro. The integration branch currently conflicts in test/shell.d/notifications/logic.cjs.

The maintainer can now choose whether to take this fix on its own or as part of the integration. The layout decision in either case is whether cards with buttons should show up to eight lines at rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants