Skip to content

Commit d618743

Browse files
committed
fix: hide editor scrollbar on Windows/Linux
1 parent 6252cb7 commit d618743

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

AUDIT_LOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ In the Settings global shortcuts section, the `renderShortcutDisplay` function g
3030

3131
---
3232

33-
### 2026-06-25 - fix: hide Settings scrollbar on Windows/Linux
33+
### 2026-06-25 - fix: hide scrollbars on Windows/Linux in Settings and editor
3434

3535
**Details/Why:**
36-
`.settings-content` used `overflow-y: auto` without scrollbar-hiding rules. macOS overlay scrollbars auto-hide, but Windows/Linux show persistent scrollbars. Added `scrollbar-width: none` (Firefox), `-ms-overflow-style: none` (IE/Edge), and `::-webkit-scrollbar { display: none }` (Chrome/Edge/Safari) to `.settings-content`.
36+
`.settings-content` and `.editor-container` used `overflow-y: auto`/`overflow: auto` without scrollbar-hiding rules. macOS overlay scrollbars auto-hide, but Windows/Linux show persistent scrollbars. Added `scrollbar-width: none` (Firefox), `-ms-overflow-style: none` (IE/Edge), and `::-webkit-scrollbar { display: none }` (Chrome/Edge/Safari) to both containers.
3737

38-
**Files changed:** `src/Settings.css`, `CHANGELOG.md`.
38+
**Files changed:** `src/Settings.css`, `src/App.css`, `CHANGELOG.md`.
3939

4040
---
4141

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- **Window no longer shifts down on restart on macOS**: Removed the +/-28px compensation that was incorrectly added for a macOS frameless window offset which does not exist in `tauri-plugin-window-state` v2.4.1 — the plugin correctly saves `outer_position()` and restores via `set_position()` with no titlebar offset for frameless windows.
1414
- **Shortcut key pill "+" centered between key caps**: The `+` separator in the shortcut display was grouped inside the same `<span>` as the key cap to its left with `justify-content: space-evenly`, making it appear visually attached to the left pill. Restructured to a flat flex layout with `gap` so the `+` is independently centered with equal spacing on both sides.
1515
- **Login-item toggle stays in sync with macOS System Settings**: The launch-at-startup toggle only read from `localStorage`, so removing PaperCache from System Settings left the toggle permanently stuck in the checked state. Fixed by adding a `get_launch_at_startup` Tauri command that queries the actual OS login-item state via `app.autolaunch().is_enabled()`, and syncing the toggle with the real OS state on every Settings mount.
16-
- **Settings scrollbar hidden on Windows/Linux**: The `.settings-content` area had `overflow-y: auto` but no scrollbar-hiding rules. macOS overlay scrollbars auto-hide, but Windows/Linux show persistent scrollbars. Added `scrollbar-width: none` (Firefox), `-ms-overflow-style: none` (IE/Edge legacy), and `::-webkit-scrollbar { display: none }` (Chrome/Safari/Edge Chromium).
16+
- **Scrollbars hidden on Windows/Linux in Settings and editor**: `.settings-content` and `.editor-container` had `overflow-y: auto`/`overflow: auto` but no scrollbar-hiding rules. macOS overlay scrollbars auto-hide, but Windows/Linux show persistent scrollbars. Added `scrollbar-width: none` (Firefox), `-ms-overflow-style: none` (IE/Edge legacy), and `::-webkit-scrollbar { display: none }` (Chrome/Safari/Edge Chromium) to both containers.
1717

1818
## [v0.5.3] - 2026-06-24
1919

src/App.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ body {
9393
width: 100%;
9494
overflow: auto;
9595
padding: 0; /* Let codemirror handle padding */
96+
scrollbar-width: none;
97+
-ms-overflow-style: none;
98+
}
99+
100+
.editor-container::-webkit-scrollbar {
101+
display: none;
96102
}
97103

98104
/* CodeMirror overrides */

0 commit comments

Comments
 (0)