Skip to content

Commit faae60a

Browse files
feat: added tooltip and darkened upload image button
1 parent 726e3d4 commit faae60a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

frontend/src/components/RollForm.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const RollForm: React.FC<props> = ({ openModal, setModalContent, setTimeTableFil
5151
});
5252

5353
const resData = await res.json();
54-
54+
5555
if (!res.ok) {
5656
toast.error(resData.message);
5757
if (res.status == 400) {
@@ -122,12 +122,14 @@ const RollForm: React.FC<props> = ({ openModal, setModalContent, setTimeTableFil
122122
<button type="submit" className="submit-button" disabled={isSubmitting}>
123123
{isSubmitting ? <Spinner /> : "Get security question"}
124124
</button>
125-
125+
126126
</form>
127127
<div className="input-item">
128128
<label>{"\nOR"}</label>
129129
</div>
130-
<button className="upload-image-button"
130+
<button
131+
title="Upload a screenshot of the timetable"
132+
className="upload-image-button"
131133
onClick={() => {
132134
openModal(true);
133135
setModalContent(<UploadImage setTimeTableFile={setTimeTableFile} setAuth={setAuth} openModal={openModal} />);

frontend/src/styles/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ aside img {
124124
}
125125

126126
.upload-image-button {
127-
background-color: #64B5F6;
127+
background-color: hsl(207, 89%, 50%);
128128
}
129129

130130
.drop-image {

0 commit comments

Comments
 (0)