Skip to content

Commit

Permalink
fixed scrollbar responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
yonatan-nyo committed Mar 2, 2024
1 parent fcfc945 commit 9faee09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/tentang-bpa/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TentangBpa = () => {
<section className="flex-grow flex flex-col md:flex-row items-center justify-center w-full overflow-x-clip relative h-fit">
{/* nav */}
<section className="h-full w-full flex flex-col items-start justify-start gap-2 px-4 self-stretch border-r-2 md:w-[210px]">
<div className="block md:fixed top-0 left-0 md:px-4 md:h-[100svh] md:shadow-lg">
<div className="block md:fixed top-0 left-0 md:px-4 md:h-[100svh] md:shadow-lg overflow-y-auto">
<div className="w-fit h-[4.5rem] hidden md:flex items-center gap-2">
<div className={`h-4 min-h-full py-2 transition-all duration-300`}>
<Image
Expand Down
12 changes: 12 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
}
}

/* Scrollbar */

::-webkit-scrollbar {
width: 12px;
background-color: #f5f8fb;
}

::-webkit-scrollbar-thumb {
-webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
background-color: #d3d5d7;
}

/* loader */
.loader {
width: fit-content;
Expand Down

0 comments on commit 9faee09

Please sign in to comment.