Skip to content

Commit c9d85dc

Browse files
committed
Add vertical scrollbar track margins for modern UI mode
- as we scroll down, the mode button appears. the issue is that we experience a slight jitter - why [Pasted text] does work, but [Pasted text] doesn't? we have modern-ui set and somethign like this in other place works [Pasted text] ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ └── frontend │ └── Home │ ├── Home.module.scss │ ├── Home.tsx │ ├── hooks │ │ ├── use-sticky-mode.ts │ │ └── use-tasks.ts │ └── index.ts └── packages └── ui └── src └── components └── editor ├── common │ └── DropdownMenu │ └── DropdownMenu.module.scss └── prompt └── ModeButton ├── ModeButton.module.scss ├── ModeButton.stories.tsx └── ModeButton.tsx
1 parent b712054 commit c9d85dc

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎packages/ui/src/components/editor/common/DropdownMenu/DropdownMenu.module.scss‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
border: 1px solid var(--cwc-border-color-dimmed);
1515
box-shadow: 0 0 8px 2px var(--vscode-widget-shadow);
1616
overflow: hidden;
17+
18+
:global([data-modern-ui='true']) & {
19+
:global {
20+
.simplebar-track.simplebar-vertical {
21+
margin: 4px 0;
22+
}
23+
}
24+
}
1725
}
1826
}
1927

‎packages/ui/src/components/editor/settings/Layout/Layout.module.scss‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
flex: 1;
5555
overflow: hidden;
5656
display: flex;
57+
:global([data-modern-ui='true']) & {
58+
:global {
59+
.simplebar-track.simplebar-vertical {
60+
margin: 4px 0;
61+
}
62+
}
63+
}
5764

5865
&__inner {
5966
display: flex;

0 commit comments

Comments
 (0)