Skip to content

Commit

Permalink
fix: scrollbar style and shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Sep 19, 2023
1 parent 13a4edd commit 1feb89e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions addons/launcher/src/renderer/LauncherList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ function stopMoving() {
</template>

<style lang="scss" scoped>
.launcher-list {
.tab-list.horizontal & {
margin-right: calc(0px - var(--scrollbar-size));
}
}
.launcher-folder {
display: flex;
flex-wrap: wrap;
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/assets/_partials.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@mixin scroll-container($size: 12px) {
--scrollbar-size: #{$size};
--scrollbar-opacity: 0;
overflow: overlay;
/* stylelint-disable-next-line custom-property-no-missing-var-function */
transition: --scrollbar-opacity 0.2s;
scrollbar-gutter: stable;
&:hover {
--scrollbar-opacity: 0.1;
}
Expand All @@ -20,7 +22,6 @@
&::-webkit-scrollbar-thumb {
background-color: rgb(var(--theme-foreground) / var(--scrollbar-opacity));
border-radius: $size;
box-shadow: 0 2px 4px 2px rgb(0 0 0 / calc(var(--scrollbar-opacity) / 2));
&:horizontal:active,
&:vertical:active {
--scrollbar-opacity: 0.2;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ onMounted(() => {
--design-separator: rgb(var(--theme-foreground) / 0.1);
--design-card-gap: 8px;
--design-card-border-radius: var(--design-card-gap);
--design-card-shadow: 0 2px 4px 2px rgb(0 0 0 / 10%);
--design-card-shadow: 0 2px 4px 0px rgb(0 0 0 / 10%);
--design-card-secondary-opacity: calc(var(--theme-opacity) * 3 / 4);
--acrylic-background: 133 194 255;
}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/TabList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ watchEffect(onInvalidate => {
display: flex;
.tab-list.vertical & {
flex-direction: column;
margin-right: calc(0px - var(--scrollbar-size));
}
}
.sash {
Expand Down

0 comments on commit 1feb89e

Please sign in to comment.