Skip to content

Commit 9bdd25e

Browse files
committed
fix(frontend): button padding right
Signed-off-by: Me0wo <[email protected]>
1 parent c79199b commit 9bdd25e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Frontend/src/router/Note.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
align-items: center;
5858
}
5959

60+
.right-buttons {
61+
padding-right: 35px;
62+
}
63+
6064
button {
6165
@include button-style;
6266
}
@@ -71,6 +75,10 @@
7175
justify-content: center;
7276
}
7377

78+
.right-buttons {
79+
padding-right: 0;
80+
}
81+
7482
.note-logo {
7583
position: absolute;
7684
top: -15px;

Frontend/src/router/Note.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ImportNote } from "@/components/ImportNote.tsx";
33
import { exportNote, getNote, importNote, saveNote } from "@/services/noteAPI";
44
import MDEditor from "@uiw/react-md-editor";
55
import { type ChangeEvent, useCallback, useEffect, useRef, useState } from "react";
6-
import { toast, Toaster } from "react-hot-toast";
6+
import { toast } from "react-hot-toast";
77
import { useNavigate, useParams } from "react-router-dom";
88
import "./Note.scss";
99

@@ -83,8 +83,6 @@ export function Note() {
8383
return (
8484
<>
8585
<DarkModeToggle />
86-
<div className="content">
87-
<Toaster position="top-right" />
8886
<ImportNote callback={async (to: string) => {
8987
navigate(`/note/${to}`, { replace: true });
9088
if (to === id) {
@@ -171,7 +169,6 @@ export function Note() {
171169
}}>
172170
{window.location.host + window.location.pathname}
173171
</button>
174-
</div>
175172
</>
176173
);
177174
}

0 commit comments

Comments
 (0)