Skip to content

Commit

Permalink
Merge pull request #23 from OVINC-CN/feat_scroll_style
Browse files Browse the repository at this point in the history
style: custom scroll style
  • Loading branch information
OrenZhang authored Jun 27, 2024
2 parents b8143f1 + c3574b3 commit 7965ff6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ html, body, #app {
.arco-btn-icon {
line-height: 0
}

*::-webkit-scrollbar {
height: 6px;
width: 6px;
background: var(--color-neutral-2);
}

*::-webkit-scrollbar-thumb {
background: rgb(var(--arcoblue-3));
}
2 changes: 1 addition & 1 deletion src/components/MessageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const emits = defineEmits(['reGenerate']);
padding: 10px;
box-sizing: border-box;
border-radius: var(--border-radius-small);
overflow-x: scroll;
overflow-x: auto;
}
.v-md-preview :deep(.github-markdown-body) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessageDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ onUnmounted(() => {
.chat-display {
min-width: 100%;
height: 100%;
overflow-y: scroll;
overflow-y: auto;
padding: 0 20px;
box-sizing: border-box;
}
Expand Down

0 comments on commit 7965ff6

Please sign in to comment.