Commit 6889ad5
committed
ux: unify Monaco scrollbar width to 8px across pre-diff entry and post-diff view
The home-page paste boxes (pages/index.vue) used Monaco's stock ~14-px
vertical scrollbar, while the diff viewer's modified pane had been
narrowed to 8-px via inline createDiffEditor options. Visual weight of
the right-edge scrollbar differed between the two pages — chunky on
the entry page, slim on the diff page.
Move the scrollbar config into the shared getMonacoEditorDefaultOptions
in helpers/utils.ts:
scrollbar: {
useShadows: false,
verticalScrollbarSize: 8,
horizontalScrollbarSize: 8,
verticalSliderSize: 8,
horizontalSliderSize: 8,
}
Both pages spread these defaults, so the entry boxes now get the same
slim 8-px scrollbar that the diff viewer's modified pane shows. The
diff editor's per-side updateOptions still overrides this for the
original pane (verticalScrollbarSize:0 to hide it entirely while
intra-diff sync drives both panes from the modified scrollbar).
Removed the now-redundant explicit scrollbar block from diff.vue's
createDiffEditor call — the spread defaults cover it.1 parent 1cc1b0b commit 6889ad5
2 files changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
96 | 109 | | |
97 | 110 | | |
98 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
307 | 303 | | |
308 | 304 | | |
309 | 305 | | |
| |||
0 commit comments