Skip to content

Make the whole Docs HTML card open its preview - #5898

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-dead-clicks-on-thread-search-palette-rows-thr_ter6x96qc3
Oct 20, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-dead-clicks-on-thread-search-palette-rows-thr_ter6x96qc3

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Docs HTML embed card highlighted its entire padded wrapper on hover, but only its smaller preview and Open in Docs buttons handled clicks. Clicking the side padding, top/bottom edges, or gap between buttons did nothing. This is the same class of issue addressed by #5891.

What changed

Stretch the preview button's pseudo-element over the whole card, using the pattern from #5891. Position the separate Open in Docs button above it so that action remains independent. Prevent text selection on repeated card clicks and show the pointer cursor across the preview target.

How you verified

Reproduced with real mouse clicks in an isolated source app before changing the code: left/right padding, the top edge, and the button gap highlighted the card without opening a preview; clicking the title opened the HTML document.

After the change, real clicks on left/right padding, the gap, top/bottom edges, and the title all opened the preview. Enter and Space opened the preview; Tab reached Open in Docs, and both keyboard activation and mouse clicks on that button navigated to the full Docs document. Also checked that the prepared pnpm start:worktree server renders the fixed card.

pnpm exec turbo run typecheck lint test --filter=bb-plugin-simple-notes passed, including all 113 tests. Lint reported eight existing warnings and zero errors. pnpm exec turbo run build --filter=bb-plugin-simple-notes and git diff --check passed.

No new test: jsdom does not provide the layout and hit testing needed to reproduce the inactive padding; real browser clicks verified this behavior.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/fix-dead-clicks-on-thread-search-palette-rows-thr_ter6x96qc3 branch from 2f92371 to e1c68a6 Compare October 20, 2026 19:29
@ymichael
ymichael merged commit e2762e5 into main Oct 20, 2026
23 checks passed
@ymichael
ymichael deleted the bb/fix-dead-clicks-on-thread-search-palette-rows-thr_ter6x96qc3 branch October 20, 2026 19:35
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