Skip to content

Commit

Permalink
style(subscriptions-list):modify scrollbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
ni00 authored and ysfscream committed Jul 29, 2023
1 parent 9d4dfa9 commit c847591
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions src/assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ body.select-none {
:focus {
outline: none;
}
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
width: 8px;
}
&::-webkit-scrollbar-thumb {
border-radius: 4px;
background: var(--color-bg-scrollbar);
width: 8px;
}
}

h1 {
Expand Down
7 changes: 4 additions & 3 deletions src/components/SubscriptionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ export default class SubscriptionsList extends Vue {
border-bottom: none;
text-align: center;
position: relative;
padding: 12px 16px 0 16px;
padding: 12px 16px;
.hide-btn {
font-size: 20px;
position: absolute;
Expand All @@ -724,9 +724,10 @@ export default class SubscriptionsList extends Vue {
}
}
.el-card__body {
padding: 18px 16px 0 16px;
padding: 6px 16px;
height: 100%;
overflow: auto;
overflow-x: hidden;
overflow-y: overlay;
.topics-item {
cursor: pointer;
color: var(--color-text-title);
Expand Down

0 comments on commit c847591

Please sign in to comment.