Skip to content

fix(ui): avoid mobile selection action overlap#622

Open
pascalandr wants to merge 1 commit into
NeuralNomadsAI:devfrom
pascalandr:fix/mobile-selection-actions
Open

fix(ui): avoid mobile selection action overlap#622
pascalandr wants to merge 1 commit into
NeuralNomadsAI:devfrom
pascalandr:fix/mobile-selection-actions

Conversation

@pascalandr

Copy link
Copy Markdown
Contributor

Summary

  • place CodeNomad selection actions below the final selected line on touch-only devices
  • keep desktop and hybrid fine-pointer positioning unchanged
  • fall back to the message stream's top edge when bottom placement would be clipped

Validation

  • 146 UI Node tests
  • npm run typecheck
  • npm run build --workspace @codenomad/ui
  • git diff --check

Closes #598

Position CodeNomad selection actions below the final selected line on touch-only devices so Android's native text-selection toolbar can remain above the selection without covering app actions. Desktop and hybrid fine-pointer behavior retain the existing placement.

Keep the actions inside the clipped message stream by falling back to its top edge when there is not enough room below. Add focused geometry coverage for normal touch placement, bottom-edge fallback, and unchanged desktop coordinates, and register the test in PR CI.

@pascalandr pascalandr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gatekeeper review, round 1: 1 finding.

High: touch placement initially did not account for the clipped message stream's bottom edge, so a selection near the bottom could move the action popover off-screen. Fixed in this PR by falling back to the stream's top edge when the popover cannot fit below the selection, with a regression test for that geometry.

@pascalandr pascalandr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gatekeeper review, round 2: zero findings.

Verified the demonstrated Android native-toolbar collision, unchanged desktop coordinates, touch bottom-edge visibility, focused regression coverage, and PR CI registration.

@pascalandr pascalandr assigned shantur and unassigned shantur Jul 22, 2026
@pascalandr

Copy link
Copy Markdown
Contributor Author

@shantur LGTM

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.

[UI] On mobile, Can't choose add quote and add comment

2 participants