-
Notifications
You must be signed in to change notification settings - Fork 82
fix(webui): Prevent the presto progress bar from overflowing its parent (fixes #1305). #1306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…verflowing its parent.
WalkthroughUpdated CSS for the Presto progress bar: changed the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. 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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
components/webui/client/src/pages/SearchPage/Presto/ProgressBar/index.module.css
(1 hunks)components/webui/client/src/pages/SearchPage/Presto/ProgressBar/index.tsx
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}
⚙️ CodeRabbit configuration file
- Prefer
false == <expression>
rather than!<expression>
.
Files:
components/webui/client/src/pages/SearchPage/Presto/ProgressBar/index.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: package-image
🔇 Additional comments (1)
components/webui/client/src/pages/SearchPage/Presto/ProgressBar/index.module.css (1)
1-5
: Scoped positioning context — fix looks good.Adding a positioned container correctly constrains the absolutely positioned progress bar to the layout width. This addresses the overflow in #1305.
Please confirm this also resolves the issue on narrow viewports and high-DPI displays.
Description
This PR fixes #1305.
The progress bar on the search page appears to be wider than the content layout. This is because the progress bar is using
position: absolute
, which makes it "float" on the search page rather than being part of the document flow. Because of this, this sizes it based on the entire page's width instead of its parent container (antd Layout).To fix this, I created a new container with
position: relative
and a height of 0. This new container will not take up any space on the page, but it will serve as a reference point for the absolutely positioned progress bar. By placing the progress bar inside this new container, it will now correctly use the layout's width instead of the page's.If you have a better way to approach this (e.g. using
position: fixed
), please let me know.Checklist
breaking change.
Validation performed
The progress bar no longer overflows.
Summary by CodeRabbit