Skip to content

Commit 64d6bd1

Browse files
committed
style(ui): Hide scrollbar and adjust background overflow
1 parent 3adde0e commit 64d6bd1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
body {
1111
@apply text-zinc-100 bg-zinc-950 w-screen h-screen;
1212
}
13+
14+
::-webkit-scrollbar {
15+
width: 0px;
16+
}
17+
18+
::-webkit-scrollbar-track {
19+
background: transparent;
20+
}
1321
}
1422

1523

src/layouts/default.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Layout: React.FC = () => {
1919

2020
const Bg = () => {
2121
return (
22-
<div className="fixed w-[60vw] h-[60vw] left-1/4 -top-10 blur-2xl">
22+
<div className="fixed w-[60vw] h-[60vw] left-1/4 -top-10 blur-2xl overflow-hidden">
2323
<p className="w-1/3 h-1/3 rounded-full bg-gradient-to-br from-sky-500 to-sky-400/2 opacity-40 blur-2xl animate-pulse"></p>
2424
<p style={{ transform: 'rotate3d(1,1,1,230deg)' }} className="absolute -top-1/3 -left-1/3 w-full h-full rounded-full border-[300px] border-sky-400 opacity-30"></p>
2525
</div>

0 commit comments

Comments
 (0)