Skip to content

fix: center clicked suggestion in horizontal list#443

Open
yinjiajun223 wants to merge 1 commit into
vercel:mainfrom
yinjiajun223:fix/suggestion-center-on-click
Open

fix: center clicked suggestion in horizontal list#443
yinjiajun223 wants to merge 1 commit into
vercel:mainfrom
yinjiajun223:fix/suggestion-center-on-click

Conversation

@yinjiajun223

Copy link
Copy Markdown

Summary

  • Center the clicked Suggestion with native scrollIntoView
  • Add a test for the scroll behavior

Why

Long suggestion rows can overflow horizontally while the scrollbar is hidden. Centering the clicked item makes nearby hidden suggestions easier to discover after interaction.

Verification

  • pnpm exec oxfmt --check packages/elements/src/suggestion.tsx packages/elements/__tests__/suggestion.test.tsx

Could not run the focused Vitest test locally because the Playwright Chromium executable is missing in this environment.

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@yinjiajun223 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

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