Skip to content

Commit a8e6d93

Browse files
finalURL fix trial
1 parent e4f18b5 commit a8e6d93

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/components/Card.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const Card = ({
2828
}, [isSelected]);
2929

3030
const handleDownload = async (paper: Paper) => {
31+
paper.finalUrl = paper.finalUrl.replace(/^http:\/\//i, 'https://');
32+
3133
const extension = paper.finalUrl.split(".").pop();
3234
const fileName = `${extractBracketContent(paper.subject)}-${paper.exam}-${paper.slot}-${paper.year}.${extension}`;
3335
await downloadFile(paper.finalUrl, fileName);

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)