Skip to content

Commit 66bd1bc

Browse files
committed
layout fix
Signed-off-by: nitro56565 <nitro56565@gmail.com>
1 parent cd7a3d5 commit 66bd1bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const App = () => {
157157
marginBottom: "10px",
158158
}}
159159
>
160-
<div style={{ display: "flex" }}>
160+
<div style={{ display: "flex", justifyContent: "space-between" }}>
161161
<ToggleDarkMode />
162162
<FullScreenModal />
163163
</div>

src/components/FullScreenModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const FullScreenModal: React.FC = () => {
3131
}, [textColor, backgroundColor]);
3232

3333
return (
34-
<div style={{ textAlign: "right", display: "flex", alignItems: "center", justifyContent: "flex-end", width: "100%", color: textColor, }} className="preview-element">
34+
<div style={{ textAlign: "right", display: "flex", alignItems: "center", justifyContent: "flex-end", color: textColor, }} className="preview-element">
3535
<FullscreenOutlined
3636
style={{ fontSize: "24px", cursor: "pointer", marginRight: "10px" }}
3737
onClick={() => setOpen(true)}

src/styles/components/ToggleDarkMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import styled from "styled-components";
22

33
export const ToggleDarkModeContainer = styled.div`
44
.dark-mode-toggle {
5-
overflow: visible !important;
5+
overflow: hidden !important;
66
display: flex;
77
padding-left: 10px !important;
88
}

0 commit comments

Comments
 (0)