Skip to content

Commit 5377f5d

Browse files
committed
style: refine scrollbar styles and clean up Edra component class attributes
1 parent 3ebba2b commit 5377f5d

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/app.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,15 @@ html {
7979
--sidebar-border: 240 3.7% 15.9%;
8080
--sidebar-ring: 217.2 91.2% 59.8%;
8181
}
82-
83-
::-webkit-scrollbar {
84-
width: 0.4rem;
85-
height: 0.4rem;
86-
}
87-
::-webkit-scrollbar-track {
88-
background: transparent;
89-
}
90-
::-webkit-scrollbar-thumb {
91-
@apply rounded-full bg-muted-foreground dark:bg-muted;
92-
}
9382
}
9483

9584
@layer base {
9685
* {
9786
@apply border-border;
87+
88+
-ms-overflow-style: -ms-autohiding-scrollbar;
89+
scrollbar-width: thin;
90+
scrollbar-color: hsla(var(--muted-foreground) / 0.25) transparent;
9891
}
9992
body {
10093
@apply bg-background text-foreground;

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<EdraBubbleMenu {editor} />
9797
<DragHandle {editor} />
9898
{/if}
99-
<Edra class="h-[32rem] overflow-auto" bind:editor {editable} {content} {onUpdate} />
99+
<Edra class="h-[32rem] overflow-auto" bind:editor {editable} {content} {onUpdate} />
100100
</div>
101101
</div>
102102

0 commit comments

Comments
 (0)