Skip to content

Commit

Permalink
client: fix theme bug, modify card alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal authored Jun 18, 2024
2 parents ea58b2d + 1789175 commit a473cec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function App() {
const { expand, sidebar, setSidebar } = useNavStore();

useEffect(() => {
document.body.setAttribute('data-theme', localStorage.getItem('theme') || Theme.Dark);
document.body.setAttribute('data-theme', localStorage.getItem('theme') === Theme.Light? Theme.Light : Theme.Dark);
handleAutoLogin(setRoute, setUser, setIsAuthenticated, setAuthTab);
}, [setRoute, setUser, setIsAuthenticated, setAuthTab]);

Expand Down
1 change: 1 addition & 0 deletions client/src/components/card/claim-username.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}

#claim-username {
margin-right: 5px;
display: flex;
flex-direction: column;
gap: 10px;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/card/open-debate-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

#open-card .debate-header a {
padding-top: 3px;
padding-top: 3.1px;
width: fit-content;
height: fit-content;
color: var(--card_color_secondary);
Expand Down

0 comments on commit a473cec

Please sign in to comment.