Skip to content

fix: always-visible Firefox scrollbars matching WebKit appearance (fixes #8)#231

Open
jiangyj545 wants to merge 1 commit into
capofficial:mainfrom
jiangyj545:fix/firefox-scrollbars-issue8
Open

fix: always-visible Firefox scrollbars matching WebKit appearance (fixes #8)#231
jiangyj545 wants to merge 1 commit into
capofficial:mainfrom
jiangyj545:fix/firefox-scrollbars-issue8

Conversation

@jiangyj545
Copy link
Copy Markdown

Problem

Firefox auto-hides custom scrollbars on Markets and Positions/Orders/History panels, unlike Chrome/Safari where -webkit-scrollbar styles keep them always visible.

Root Cause

Firefox uses scrollbar-color / scrollbar-width properties (not ::-webkit-scrollbar pseudo-elements). Without explicit track color and gutter reservation, Firefox defaults to overlay scrollbar behavior — only visible during active scrolling.

Changes

File: src/components/layout/table/Table.svelte

Property Before After
scrollbar-color var(--layer200) var(--layer200) transparent
scrollbar-gutter (not set) stable

Applied to both:

  • .data-wrapper (desktop table scroll container)
  • .table-wrapper inside @media (max-width: 600px) (mobile)

Verification

  • npx rollup -c ✅ builds successfully
  • CSS-only change, no behavioral impact on WebKit browsers
  • scrollbar-gutter: stable is supported in Firefox 68+ (2019)

Fixes #8

 capofficial#8)

- Add scrollbar-gutter: stable to reserve space and prevent auto-hide
- Set explicit transparent track color (scrollbar-color: thumb track)
- Apply to both .data-wrapper and mobile .table-wrapper
- Firefox now shows persistent thin scrollbars like Chrome/Safari
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.

Panel scrollbars do not appear on Firefox

1 participant