Skip to content

fix: Keep vertical scrollbar visible in data browser with wide tables#3356

Closed
PreviousGod wants to merge 3 commits into
parse-community:alphafrom
PreviousGod:fix-scrollbar-2045
Closed

fix: Keep vertical scrollbar visible in data browser with wide tables#3356
PreviousGod wants to merge 3 commits into
parse-community:alphafrom
PreviousGod:fix-scrollbar-2045

Conversation

@PreviousGod
Copy link
Copy Markdown

@PreviousGod PreviousGod commented May 11, 2026

Closing in favor of #3357 which is a cleaner approach with fewer changes.

Closes parse-community#2045

The vertical scrollbar was positioned at the right edge of the scrollable
content area. When a table had many columns, users had to scroll all the
way to the right to access the vertical scrollbar.

This change separates horizontal and vertical scrolling:
- .browser now only scrolls vertically (overflow-y: auto, overflow-x: hidden)
- A new .browserContent wrapper handles horizontal scrolling
- The sticky header and table rows scroll together horizontally
- The vertical scrollbar is always visible on the viewport edge
@parse-github-assistant
Copy link
Copy Markdown

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant Bot changed the title fix: keep vertical scrollbar visible in data browser with wide tables fix: Keep vertical scrollbar visible in data browser with wide tables May 11, 2026
@parse-github-assistant
Copy link
Copy Markdown

parse-github-assistant Bot commented May 11, 2026

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 11, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0473dc7c-6aee-4302-b545-8aba24cf3a77

📥 Commits

Reviewing files that changed from the base of the PR and between 0f9c430 and 4cace16.

📒 Files selected for processing (2)
  • package-lock.json
  • src/dashboard/Data/Browser/BrowserTable.react.js
💤 Files with no reviewable changes (1)
  • package-lock.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/dashboard/Data/Browser/BrowserTable.react.js

📝 Walkthrough

Walkthrough

This PR separates vertical and horizontal scrolling in the data browser: .browser now handles vertical scrolling, .browserContent handles horizontal scrolling, the outer wrapper always hides horizontal overflow and receives browserRef, and scrollTop resets use that browserRef.

Changes

Browser Scrollbar Visibility

Layer / File(s) Summary
Scroll Style Definitions
src/dashboard/Data/Browser/Browser.scss
.browser updated to overflow-y: auto and overflow-x: hidden; new .browserContent class added with position: relative, min-height: 100%, overflow-x: auto, and overflow-y: hidden.
Table Wrapper & Scroll Reset
src/dashboard/Data/Browser/BrowserTable.react.js
Adds browserRef (React.createRef()), uses browserRef.current.scrollTop = 0 in componentWillReceiveProps for prop changes (className, newObject, ordering, filters.size), and sets the outer wrapper to always overflowX: 'hidden' with ref={this.browserRef}.
Lockfile Cleanup (unrelated)
package-lock.json
Removes nested node_modules/filing-cabinet/node_modules/typescript entry from the lockfile.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 6 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Engage In Review Feedback ❓ Inconclusive Cannot access GitHub PR review comments from git repository alone. The check requires verifying engagement with feedback, but this needs access to GitHub PR review history. Review PR #3356 on GitHub to verify if review comments exist and whether user engaged through discussion, commits, or review retraction.
✅ Passed checks (6 passed)
Check name Status Explanation
Title check ✅ Passed The PR title starts with 'fix:' prefix as required and clearly describes the main change addressing the scrollbar visibility issue.
Description check ✅ Passed The description includes linked issue, approach, and changes explanation, but is missing the optional Tasks section with checkboxes.
Linked Issues check ✅ Passed The PR fully addresses issue #2045 by separating horizontal and vertical scrolling to keep the vertical scrollbar always visible at viewport edge.
Out of Scope Changes check ✅ Passed All changes are directly related to fixing the scrollbar visibility issue: CSS modifications for scroll behavior, ref management in React component, and a package lock file update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Security Check ✅ Passed No security vulnerabilities found. Proper null guards on ref access, hardcoded scrollTop assignments, safe React patterns. No dangerous functions or CSS exploits detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 OpenGrep (1.20.0)

OpenGrep fatal error (exit code 2): [00.14][ERROR]: Error: exception Unix_error: No such file or directory stat src/dashboard/Data/Browser/BrowserTable.react.js
Raised by primitive operation at UTmp.replace_named_pipe_by_regular_file_if_needed in file "libs/commons/UTmp.ml", line 145, characters 8-27
Called from Scan_CLI.replace_target_roots_by_regular_files_where_needed.(fun) in file "src/osemgrep/cli_scan/Scan_CLI.ml", lines 1086-1087, characters 19-65
Called from List_.fast_map in file "libs/commons/List_.ml", line 81, characte

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/dashboard/Data/Browser/BrowserTable.react.js`:
- Around line 607-649: The scroll reset is broken because
componentWillReceiveProps still sets this.tableRef.current.scrollTop but the
scrollable element is now the .browser container; add a new ref in the
constructor (this.browserRef = React.createRef()), attach it in render to the
outer .browser div (ref={this.browserRef}), and update componentWillReceiveProps
to set this.browserRef.current.scrollTop = 0 (replace uses of
this.tableRef.current.scrollTop) so filters/ordering/class changes correctly
reset scrolling; keep other logic unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a256152b-f04a-45b6-8c29-ec1179d8afe8

📥 Commits

Reviewing files that changed from the base of the PR and between 5f0c479 and 29a3d3e.

📒 Files selected for processing (2)
  • src/dashboard/Data/Browser/Browser.scss
  • src/dashboard/Data/Browser/BrowserTable.react.js

Comment thread src/dashboard/Data/Browser/BrowserTable.react.js
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/dashboard/Data/Browser/BrowserTable.react.js`:
- Around line 46-56: The review points out accesses to
this.browserRef.current.scrollTop without guarding for a null ref; update the
BrowserTable component so every place that reads or writes
this.browserRef.current.scrollTop first checks that this.browserRef &&
this.browserRef.current (or equivalent) is truthy before using scrollTop
(including the branches that call this.setState(..., () => {
this.browserRef.current.scrollTop = 0; }) and the direct assignments like
this.browserRef.current.scrollTop = 0); ensure all occurrences in the component
are updated to safely skip or noop when the ref is null to avoid runtime errors
in SSR/tests/unmount races.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8d780b22-e61c-47dc-89f9-300bcdaeccb4

📥 Commits

Reviewing files that changed from the base of the PR and between 29a3d3e and 0f9c430.

📒 Files selected for processing (1)
  • src/dashboard/Data/Browser/BrowserTable.react.js

Comment thread src/dashboard/Data/Browser/BrowserTable.react.js Outdated
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