Skip to content

Commit 53f6aef

Browse files
committed
fix(scrollbar): suppress horizontal scrolling
1 parent 4c52a5e commit 53f6aef

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/renderer/components/editor/Description.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ watch(selectedSnippet, () => {
3838
v-model="description"
3939
:focus="show"
4040
variant="ghost"
41+
:scrollbar-options="{ suppressScrollX: true }"
4142
/>
4243
</div>
4344
</template>

src/renderer/components/sidebar/folders/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ provide(treeKeys, {
178178
<PerfectScrollbar
179179
v-if="modelValue.length"
180180
ref="scrollRef"
181-
:options="{ minScrollbarLength: 20 }"
181+
:options="{ minScrollbarLength: 20, suppressScrollX: true }"
182182
>
183183
<ContextMenu.Root>
184184
<ContextMenu.Trigger as-child>

src/renderer/components/sidebar/tags/Tags.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function onUpdateContextMenu(bool: boolean) {
7272
<PerfectScrollbar
7373
v-if="tags.length"
7474
data-sidebar-tags
75-
:options="{ minScrollbarLength: 20 }"
75+
:options="{ minScrollbarLength: 20, suppressScrollX: true }"
7676
>
7777
<ContextMenu.Root @update:open="onUpdateContextMenu">
7878
<ContextMenu.Trigger>

src/renderer/components/snippet/List.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ watch(displayedSnippets, () => {
4646
<PerfectScrollbar
4747
v-if="displayedSnippets?.length"
4848
ref="scrollbarRef"
49-
:options="{ minScrollbarLength: 20 }"
49+
:options="{ minScrollbarLength: 20, suppressScrollX: true }"
5050
>
5151
<div class="flex-grow overflow-y-auto px-2">
5252
<SnippetItem

src/renderer/components/ui/input-tags/InputTags.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ watch(
347347
>
348348
<PerfectScrollbar
349349
ref="scrollbarRef"
350-
:options="{ minScrollbarLength: 20 }"
350+
:options="{ minScrollbarLength: 20, suppressScrollX: true }"
351351
>
352352
<ul class="w-full p-1">
353353
<li

0 commit comments

Comments
 (0)