Skip to content

Commit

Permalink
fix: scrollbar bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ze-kel committed Aug 18, 2024
1 parent 5508010 commit 0b1c345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/next/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default async function RootLayout({
<Header user={user || undefined} />
</div>
{user && (
<div className="sidebar sticky top-14 hidden h-full max-h-[calc(100vh-3.5rem)] overflow-scroll border-r-2 border-neutral-300 bg-neutral-100 px-3 py-6 dark:border-neutral-800 dark:bg-neutral-900 xl:block">
<div className="sidebar customScrollBar customScrollBarBig sticky top-14 hidden h-full max-h-[calc(100vh-3.5rem)] overflow-auto border-r-2 border-neutral-300 bg-neutral-100 px-3 py-6 dark:border-neutral-800 dark:bg-neutral-900 xl:block">
<Sidebar />
</div>
)}
Expand Down
24 changes: 1 addition & 23 deletions apps/next/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.customScrollBar::-webkit-scrollbar-thumb {
@apply bg-neutral-200 dark:bg-neutral-900;
@apply bg-neutral-200 dark:bg-neutral-700;
}
}

Expand All @@ -35,25 +35,3 @@ input::-webkit-inner-spin-button {
input[type="number"] {
-moz-appearance: textfield;
}

/* Emoji picker styling */
em-emoji-picker {
--background-rgb: 23, 23, 23;
--border-radius: 0;
--category-icon-size: 24px;

--color-border-over: #737373;
--color-border: rgb(64, 64, 64);

--em-rgb-input: #262626;

--font-size: 20px;
--rgb-accent: 132, 204, 22;
--rgb-background: 23, 23, 23;
--rgb-color: 250, 250, 250;
--rgb-input: 64, 64, 64;

height: 50vh;
min-height: 400px;
max-height: 800px;
}

0 comments on commit 0b1c345

Please sign in to comment.