Repository navigation
Improve scroll indicator visibility with larger sizes and opacity - #24276
Conversation
- Idle height: 2px → 3px, expanded: 3px → 4px - Increased background and thumb color opacity for better contrast
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Purely presentational adjustment to the tab-strip scroll indicator — taller track and higher-opacity thumb across idle, hover, and drag states. No state, logic, or contract change.
- Track sizing — idle height
h-[2px]→h-[3px], expandedh-[3px]→h-[4px]; expanded track backgroundbg-muted-foreground/10→/15. - Thumb opacity — drag
bg-foreground/40→/70, hoverbg-muted-foreground/50→/80, idlebg-muted-foreground/25→/60. - Tests — height assertions updated to the new 3px/4px values.
Verified locally: the component suite passes (10/10) and pnpm run check:code-quality:changed reports 0 design-system and code-quality findings on both changed files. All classes remain semantic-token opacity modifiers, consistent with existing scrollbar conventions in the app.
One cosmetic note, not blocking: the PR body says the tests were updated to reflect the new opacity values, but no assertion pins the thumb's opacity classes — the tests only cover track heights and the opacity-0/opacity-100 visibility toggles. The code and description are otherwise consistent.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughThe scroll indicator track is 3px tall when collapsed and 4px tall when expanded. The track background is stronger when expanded, and thumb backgrounds are more opaque in idle, hovered, and dragging states. Tests now check the updated heights at rest, on hover, when disabled, and during thumb dragging. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The scroll indicator receives the intended larger track and stronger colors. Adding assertions for those colors would help catch future visual regressions, but no current user-facing failure is established, so merge risk is minimal. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description clearly explains the problem, changes, rationale, testing updates, and scope. However, it omits the required actual issue reference and does not provide the required visual proof for a UI change. The
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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/components/tab-bar/TabStripScrollIndicator.test.tsx (1)
33-44: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover all state-specific color classes in one focused test.
The existing tests cover height and indicator opacity, but they do not assert the idle thumb, hovered thumb, dragging thumb, or expanded-track classes. A visual color regression can therefore pass. Add one state-transition test.
Suggested fix
+ it('applies state-specific track and thumb colors', () => { + const { getByTestId } = render(<TabStripScrollIndicator metrics={OVERFLOW_METRICS} />) + const indicator = getByTestId('tab-strip-scroll-indicator') + const thumb = getByTestId('tab-strip-scroll-thumb') + + expect(indicator.className).toContain('bg-transparent') + expect(thumb.className).toContain('bg-muted-foreground/60') + + fireEvent.pointerEnter(indicator) + expect(indicator.className).toContain('bg-muted-foreground/15') + expect(thumb.className).toContain('bg-muted-foreground/80') + + fireEvent.pointerDown(thumb, { button: 0, clientX: 50 }) + expect(thumb.className).toContain('bg-foreground/70') + })
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: b3b9993b-d809-4b2e-9ca7-a5e568124b85
📒 Files selected for processing (2)
src/renderer/src/components/tab-bar/TabStripScrollIndicator.test.tsxsrc/renderer/src/components/tab-bar/TabStripScrollIndicator.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
@coderabbitai Fixing. Will be in the next commit |
|
Tip For best results, initiate chat on the files or code changes.
You are interacting with an AI system. |

Problem
The scroll indicator in tab strips is too subtle to notice at a glance. The 2px height and low opacity make it easy to miss when navigating many tabs.
Solution
Increased scroll indicator dimensions and opacity across all states to make it more visible without being intrusive. Idle height goes from 2px to 3px, expanded from 3px to 4px, and opacity values are increased proportionally.
What Changed
bg-muted-foreground/10→/15bg-foreground/40→/70bg-muted-foreground/50→/80bg-muted-foreground/25→/60Why
The scroll indicator is critical feedback about position in horizontally-scrollable tab strips. The previous styling was too subtle. This change increases prominence while maintaining aesthetic refinement and respecting idle/hover state distinctions.
Linked Issue
Fixes #
Visual Proof
N/A — Stylistic refinement to scroll indicator sizing and opacity. Changes are visible in the app when rendering tab strips that overflow horizontally; the indicator appears slightly taller and more opaque across all states.
Testing
Existing test suite updated to verify new dimensions (3px idle, 4px expanded) and opacity behavior across state transitions.
AI Disclosure
N/A — Internal contributor.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
This change is purely stylistic with no functional impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)