fix(ui): align short filters and hide inactive scrollbars - #2881
Merged
Merged
Conversation
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.
Related issue
N/A - maintainer-requested and accepted follow-up to #2878.
Summary
Short database lists could shift to the right after opening the filter popover because their measured scroll width was smaller than the viewport. Clamp the measured width to the container width and observe layout changes so a popover initially mounted without visible dimensions also aligns correctly.
Fade horizontal and vertical scrollbar thumbs out within 120 ms when the pointer leaves the list. Keep the dragged thumb visible outside the list, restore it on pointer entry, and prevent hidden scrollbars from intercepting content clicks.
Affected surfaces
Verification
yarn lint,yarn run build:web:community --app_version=5.3.6-beta.5, andgit diff --checkpassed. In the isolated PR worktree,yarn install --frozen-lockfile --offline --non-interactive,yarn lint, andgit diff --checkalso passed.Risk and compatibility
Reviewer map
chat2db-community-client/src/components/NodeFiltering/index.tsxfor the viewport width floor and observer lifecycle;style.tsxfor scrollbar visibility and pointer handling.Contributor declaration
AI assistance: Codex implemented the change and performed code review, automated checks, and Playwright CLI verification under maintainer direction.