Skip to content

Commit 35e57dd

Browse files
fix(snippets): fragmetns scroll #92 (#105)
1 parent 072d0ca commit 35e57dd

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

src/renderer/assets/scss/vendor.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,32 @@
1313
}
1414
}
1515
&__rail-x {
16-
background-color: rgba(121, 121, 121, 0.5);
16+
background-color: rgba(121, 121, 121, 0.8);
1717
width: 5px;
1818
&:hover {
1919
height: 4px;
2020
background-color: transparent !important;
2121
opacity: 0.4 !important;
2222
#{$r}__thumb-x {
23-
height: 4px;
23+
height: 5px;
2424
right: 0;
2525
}
2626
}
2727
}
28-
&__thumb-y,
28+
&__thumb-x,
2929
&__thumb-y {
3030
background-color: rgba(121, 121, 121, 0.8);
31+
}
32+
&__thumb-y {
3133
width: 5px;
3234
right: 0;
3335
}
36+
&__thumb-x {
37+
height: 5px;
38+
}
3439
}
3540

41+
3642
.ti-tags {
3743
background-color: var(--color-bg) !important;
3844
}

src/renderer/components/snippets/SnippetFragments.vue

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<template>
2-
<div class="fragments">
3-
<div
4-
v-for="(i, index) in snippetStore.fragmentLabels"
5-
:key="index"
6-
class="item"
7-
:class="{ 'is-active': index == snippetStore.fragment }"
8-
@click="onClickFragment(index)"
9-
>
10-
<SnippetsFragmentsInput
11-
:name="i"
12-
:index="index"
13-
/>
2+
<PerfectScrollbar>
3+
<div class="fragments">
4+
<div
5+
v-for="(i, index) in snippetStore.fragmentLabels"
6+
:key="index"
7+
class="item"
8+
:class="{ 'is-active': index == snippetStore.fragment }"
9+
@click="onClickFragment(index)"
10+
>
11+
<SnippetsFragmentsInput
12+
:name="i"
13+
:index="index"
14+
/>
15+
</div>
1416
</div>
15-
</div>
17+
</PerfectScrollbar>
1618
</template>
1719

1820
<script setup lang="ts">
@@ -34,7 +36,7 @@ const fragmentHeight = appStore.sizes.editor.fragmentsHeight + 'px'
3436
display: flex;
3537
align-items: center;
3638
height: v-bind(fragmentHeight);
37-
overflow-y: auto;
39+
// overflow-y: auto;
3840
.item {
3941
padding: 0 var(--spacing-xs);
4042
display: flex;

0 commit comments

Comments
 (0)