Skip to content

Commit

Permalink
fix: thin scroll bar
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed May 30, 2024
1 parent 4c0dd35 commit 148c8dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/assets/_partials.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin scroll-container($size: 12px) {
@mixin scroll-container($size) {
--scrollbar-size: #{$size};
--scrollbar-opacity: 0;
overflow: scroll;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/TerminalPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function openEditingMenu(event: MouseEvent) {
@use '../assets/_partials';
.terminal-pane {
@include partials.scroll-container;
@include partials.scroll-container(8px);
position: relative;
z-index: 0;
box-sizing: border-box;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/TerminalTeletype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function scrollToStickyCommand() {
padding-left: var(--integration-width);
}
:deep(.xterm-viewport) {
@include partials.scroll-container;
@include partials.scroll-container(8px);
background-color: transparent !important;
}
/* issue@xterm: pointer behavior */
Expand Down

0 comments on commit 148c8dd

Please sign in to comment.