feat: change scrollbar

This commit is contained in:
Pihkaal
2024-09-13 00:28:02 +02:00
parent dce7572535
commit d2ae84846e
2 changed files with 24 additions and 0 deletions

View File

@@ -43,10 +43,12 @@ const InnerNvimTree = (props: InnerKittyProps<typeof Nvim>) => {
<NvimTree {...props} onOpen={handleOpenChild} /> <NvimTree {...props} onOpen={handleOpenChild} />
</div> </div>
<div <div
className="scrollbar overflow-y-scroll"
style={{ style={{
gridArea: "1 / 2 / 1 / 3", gridArea: "1 / 2 / 1 / 3",
overflowY: "auto", overflowY: "auto",
wordWrap: "break-word", wordWrap: "break-word",
scrollSnapType: "inline",
}} }}
> >
<NvimEditor content={activeChild?.content} /> <NvimEditor content={activeChild?.content} />

View File

@@ -38,3 +38,25 @@ body {
.drop-shadow-white:hover { .drop-shadow-white:hover {
filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1)); filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1));
} }
@layer utilities {
.scrollbar::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.scrollbar::-webkit-scrollbar-thumb {
background-color: #f7ddd9;
border-radius: 4px;
}
.scrollbar::-webkit-scrollbar-track {
background-color: transparent;
border-radius: 4px;
}
.scrollbar {
scrollbar-width: thin;
scrollbar-color: #f7ddd9 transparent;
}
}