Skip to content

Improve scroll indicator visibility with larger sizes and opacity - #24276

Merged
AmethystLiang merged 2 commits into
mainfrom
improve-scroll-indicator-visibility
Oct 1, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
improve-scroll-indicator-visibility

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​46 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​37
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 0

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

  • Idle scroll indicator height: 2px → 3px
  • Expanded scroll indicator height: 3px → 4px
  • Opacity increases across all states:
    • Expanded track: bg-muted-foreground/10 → /15
    • Dragging thumb: bg-foreground/40 → /70
    • Hovered thumb: bg-muted-foreground/50 → /80
    • Idle thumb: bg-muted-foreground/25 → /60
  • Updated tests to reflect new dimensions and opacity values

Why

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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

- Idle height: 2px → 3px, expanded: 3px → 4px
- Increased background and thumb color opacity for better contrast
@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Adjusts scroll indicator sizing and visual opacity.

The PR appears safe to merge; no new actionable issue was found.

Summary

The PR makes the tab-strip scroll indicator taller and more opaque, then adds assertions for its idle, hover, and drag colors.

  • The changes since the previous review add color-state test coverage.

Reviews (2) · Last reviewed commit: "add test"

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 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], expanded h-[3px] → h-[4px]; expanded track background bg-muted-foreground/10 → /15.
  • Thumb opacity — drag bg-foreground/40 → /70, hover bg-muted-foreground/50 → /80, idle bg-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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

The 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 b5ee7

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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… Add the actual linked issue number to the Fixes # section. Attach before-and-after screenshots or a video showing the changed scroll indicator in an overflowing tab strip.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: improving scroll indicator visibility through larger sizes and increased opacity.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

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 Fixes # entry is empty, and N/A is not valid because the indicator appearance changes.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/renderer/src/components/tab-bar/TabStripScrollIndicator.test.tsx (1)

33-44: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Cover 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

📥 Commits

Reviewing files that changed from the base of the PR and between 78daf71 and b5ee7b9.

📒 Files selected for processing (2)
  • src/renderer/src/components/tab-bar/TabStripScrollIndicator.test.tsx
  • src/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.

@AmethystLiang

Copy link
Copy Markdown
Contributor Author

@coderabbitai Fixing. Will be in the next commit

@coderabbitai

coderabbitai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@AmethystLiang Thanks for the update. The finding remains open until the fix is complete.

You are interacting with an AI system.

@AmethystLiang
AmethystLiang merged commit cb11a9f into main Oct 1, 2026
21 of 28 checks passed
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