Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 6a5a97def56512c0d02b60725d7af2d78e189a06 and 44e01b9. 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe editor scrollbar CSS now applies standard Priority: ⬇️ Low 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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.
🧹 Nitpick comments (1)
src/renderer/src/assets/terminal-scrollbar-style.test.ts (1)
26-40: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert
scrollbar-widthfor.scrollbar-editor.The test checks only
scrollbar-color. Ifscrollbar-width: thinis removed, the test passes but editor scrollbar behavior changes. Add an assertion for the width declaration.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 634981f8-8781-4621-a0ad-aaa8288dff61
📥 Commits
Reviewing files that changed from the base of the PR and between 79896cb and 606507098374f9b608b214c0e8c5478aa21dfb8e.
📒 Files selected for processing (2)
src/renderer/src/assets/main.csssrc/renderer/src/assets/terminal-scrollbar-style.test.ts
CI gate@Jinwoo-H (or any maintainer with Actions approval) — could you Approve and run workflows on this head ( Why this is P0This undoes a regression from our own merged #7876: Chromium ≥121 disables Evidence already on the PR
Fork PR Checks are stuck at |
CI readout (head
|
| Check | Result |
|---|---|
| typecheck, git compatibility, shell contracts | green |
| tests node 24 (16/16) + node 26 (16/16) | green |
| package + package (windows) | green |
| cross-version wire compatibility | green |
| static analysis | red — eslint(max-lines) on mobile/src/session/use-mobile-native-chat-controller.ts (303 lines on this base) |
| verify | red only as cascade from static analysis |
This PR does not touch that mobile file (diff is only main.css + terminal-scrollbar-style.test.ts). Current main already fixed it via #12826 (file is 288 lines on tip). A rebase onto latest main should clear the only red check without changing the scrollbar fix.
Holding the head until a maintainer prefers rebase-or-merge-as-is — not force-pushing on my own.
6065070 to
98f109c
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 2d0d99f7-e6a6-49e6-a05d-dc07db370172
📥 Commits
Reviewing files that changed from the base of the PR and between 93e0811 and 98f109c1681e80fb153536c90fa3c59934222221.
📒 Files selected for processing (2)
src/renderer/src/assets/main.csssrc/renderer/src/assets/terminal-scrollbar-style.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/assets/main.css
98f109c to
6a5a97d
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Chromium disables ::-webkit-scrollbar* when scrollbar-width/color are set. Keep standard props on .scrollbar-editor only; style xterm viewport with webkit pseudos so the thumb paints again while the track stays transparent.
6a5a97d to
44e01b9
Compare
|
Closing: on xterm 6 |
Summary
The terminal vertical scrollbar no longer rendered on any theme after #7876 folded the xterm viewport into both standard
scrollbar-*properties and::-webkit-scrollbar*rules.Fixes #12635.
Screenshots
No screenshot available. Reviewer will see: a visible vertical scrollbar thumb over a transparent gutter/track in the terminal; horizontal scrollbar unchanged; editor/Monaco
.scrollbar-editorbehavior unchanged.Testing
pnpm lint— ranpnpm exec oxlintonterminal-scrollbar-style.test.ts(0 errors); CSS has no oxlint surfacepnpm typecheck— skipped (CSS + style unit test only; no TS production changes)pnpm test— focused:pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/assets/terminal-scrollbar-style.test.ts(2/2 pass). Repository-wide suite not run.pnpm build— not run (renderer CSS + test-only change; build would not exercise the regression)scrollbar-width/scrollbar-colorwhen it also uses::-webkit-scrollbar*(the hole fix(terminal): make xterm scrollbar gutter transparent #7876's greps missed). RED on origin/main before the CSS fix; GREEN after.ELI5
Clicking around in a terminal, the thin grey bar on the right edge that shows scroll position disappeared. Browsers (and Electron's Chromium) ignore custom scrollbar paint rules when you also set the newer standard scrollbar properties on the same element. We keep the transparent track from the original fix, but stop setting those standard properties on the terminal viewport so the thumb can paint again.
AI Review Report
Self-review of a renderer-only CSS + unit-test change:
::-webkit-scrollbar*whenscrollbar-width/scrollbar-colorare present; Electron 43.1.0 ships Chromium ~140, so the conflict applies..xterm .xterm-viewportonly from the standard-props rule; left it on all webkit track/thumb rules so fix(terminal): make xterm scrollbar gutter transparent #7876's transparent gutter remains.rgba(121, 121, 121, 0.4|0.7)already defined for this scrollbar — no invented tokens (STYLEGUIDE)..scrollbar-editorFirefox path (standard props kept there); test false positives on multi-selector blocks (selector parser excludes::-webkit-scrollbar*).Security Audit
No security surface. No IPC, command execution, filesystem, auth, secrets, network, or dependency changes — pure renderer CSS styling and a style-source unit test.
Notes
Mechanism: #7876 added
.xterm .xterm-viewportto both the standardscrollbar-width/scrollbar-colorblock and the::-webkit-scrollbar*blocks. In Chromium ≥121, standard scrollbar properties disable webkit pseudo styling, so the custom thumb never applied; withterminal.cssmaking the viewport background transparent, the UA thin thumb over a transparent track was effectively invisible. Horizontal scrollbar is a different element, which is why it survived.Supersedes nothing; #7876's transparent-gutter intent is preserved (webkit track remains
background: transparent; only standard props were removed from the viewport selector).