Repository navigation
Fix touch icon sizing in file and attachment previews - #2780
Merged
ymichael merged 1 commit intoAug 31, 2026
Merged
Conversation
ymichael
deleted the
bb/investigate-undersized-copy-icon-thr_mdsgnhxu77
branch
August 31, 2026 23:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Narrow coarse-pointer layouts did not have surface-specific icon sizing. The File Preview copy action remained a 20px target with a 12px glyph beside existing 36px/20px header actions, while attachment remove controls coupled their visible treatment and layout footprint to their hit target. A global icon-sizing rule would overcorrect dense surfaces and require unrelated core and plugin controls to opt into or out of that policy.
What changed
How you verified
pnpm exec turbo run test --filter=@bb/app -- --run src/components/promptbox/AttachmentPreview.test.tsx src/components/secondary-panel/FilePreview.test.tsx src/components/secondary-panel/SecondaryPanelTabStrip.test.ts src/components/ui/tab-pill.test.tsx(34 tests passed).pnpm exec turbo run typecheck --filter=@bb/app.pnpm exec turbo run lint --filter=@bb/app(0 errors; 173 pre-existing warnings).git diff --check origin/main...HEAD.Fixes: no linked issue.