-
Notifications
You must be signed in to change notification settings - Fork 21
🐛 Missing css variables for diff view #610
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
Signed-off-by: Ian Bolton <[email protected]>
WalkthroughThe changes introduce new and updated CSS styling for components related to file modification display in a web UI. Two TypeScript React components ( Estimated code review effort1 (~2 minutes) 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. 🔧 ESLint
npm error Exit handler never called! ✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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: 0
♻️ Duplicate comments (1)
webview-ui/src/components/ResolutionsPage/ModifiedFile/HunkSelectionInterface.tsx (1)
5-5
: Same import already reviewed inSingleHunkDisplay.tsx
No additional concerns.
🧹 Nitpick comments (2)
webview-ui/src/index.css (1)
68-88
: Consider scoping PatternFly token overridesAdding
--pf-global--*
variables directly on:root
will override the host environment (VS Code) for anything else that consumes PatternFly in the same page.
If the intent is to style only the web-view, consider:-:root { +:where(#root) { /* new token defs … */ }or prefix the variables with an extension-specific namespace to avoid accidental bleed-through when the page loads additional PatternFly content in the future.
webview-ui/src/components/ResolutionsPage/ModifiedFile/modifiedFileMessage.css (1)
582-589
: Minor visual tweakThe 2 px border shrinks the 0.75 rem square, making the context swatch visually smaller than the addition/deletion ones (which have no border).
If consistent sizing is desired, bump the element size or use an inset box-shadow instead of an actual border:-.legend-color.context { - background-color: var(--pf-global--BackgroundColor--100); - border: 2px solid var(--pf-global--BorderColor--300); -} +.legend-color.context { + background-color: var(--pf-global--BackgroundColor--100); + box-shadow: inset 0 0 0 2px var(--pf-global--BorderColor--300); +}Purely cosmetic—feel free to ignore if the current look matches the design spec.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
webview-ui/src/components/ResolutionsPage/ModifiedFile/HunkSelectionInterface.tsx
(1 hunks)webview-ui/src/components/ResolutionsPage/ModifiedFile/SingleHunkDisplay.tsx
(1 hunks)webview-ui/src/components/ResolutionsPage/ModifiedFile/modifiedFileMessage.css
(1 hunks)webview-ui/src/index.css
(1 hunks)
⏰ 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). (3)
- GitHub Check: Build (windows)
- GitHub Check: Build (macos)
- GitHub Check: Build (linux)
🔇 Additional comments (1)
webview-ui/src/components/ResolutionsPage/ModifiedFile/SingleHunkDisplay.tsx (1)
5-5
: ✓ Stylesheet import looks goodSide-effect importing the shared stylesheet keeps styling colocated with the component and the relative path is correct (
./modifiedFileMessage.css
). Nothing else to flag here.
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.
lgtm
Address missing css variables. This was causing the context item in the diff legend to appear blank.
Summary by CodeRabbit