Skip to content

Commit b2e7fe1

Browse files
Merge pull request #13 from abhitrueprogrammer/master
Added scrollbar
2 parents 5a8eee4 + 771ebce commit b2e7fe1

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

src/components/Card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const Card = ({
7474
>
7575
<Link
7676
href={paper.finalUrl}
77-
target="_blank"
77+
target={paper.finalUrl.endsWith('.pdf') ? '_self' : '_blank'}
78+
7879
rel="noopener noreferrer"
7980
>
8081
<Image

src/styles/globals.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,33 @@
9898
}
9999
.phonk{
100100
font-family: "phonk";
101+
}
102+
.dark ::-webkit-scrollbar {
103+
width: 0.4rem;
104+
background: #535253;
105+
}
106+
107+
/* Track */
108+
.dark ::-webkit-scrollbar-track {
109+
background: #0c0c0c;
110+
border-radius: 0.6rem;
111+
z-index: -99;
112+
}
113+
/* Handle */
114+
.dark ::-webkit-scrollbar-thumb {
115+
background: #5c5957;
116+
border-radius: 1rem;
117+
}
118+
::-webkit-scrollbar {
119+
width: 0.4rem;
120+
background: #535253;
121+
}
122+
::-webkit-scrollbar-track {
123+
background: #ffffff;
124+
border-radius: 0.6rem;
125+
z-index: -99;
126+
}
127+
::-webkit-scrollbar-thumb {
128+
background: #929292;
129+
border-radius: 1rem;
101130
}

0 commit comments

Comments
 (0)