Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 12c5a56

Browse files
fix weird styling issues 2
1 parent 7c4ac4c commit 12c5a56

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function App() {
8989
</div>
9090
</header>
9191
{storedCredentials ?
92-
<div style={{height: '100vh', width: '100vw', margin: 0, padding: 0, paddingTop: 70}}>
92+
<div style={{height: 'calc(100vh - 92px)', width: '100vw', margin: 0, padding: 0, paddingTop: 70}}>
9393
<Outlet/>
9494
</div>
9595
:

frontend/src/routes/Settings.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ const Settings = () => {
3535

3636
return (
3737
<div style={{width: '100%', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', flexDirection: 'column'}}>
38-
<div style={{height: '85%', width: '50%', maxWidth: '50%', backgroundColor: colors.secondary, display: 'flex', flexDirection: 'row', borderRadius: 30}}>
39-
<div style={{width: 170, height: '100%', borderRight: `2px solid ${colors.tertiary}`, padding: '30px 5px', overflow: 'scroll'}}>
38+
<h1>Settings</h1>
39+
<div style={{height: '90%', width: '50%', maxWidth: '50%', backgroundColor: colors.secondary, display: 'flex', flexDirection: 'row', borderRadius: 30}}>
40+
<div style={{width: 170, height: 'calc(100% - 60px)', borderRight: `2px solid ${colors.tertiary}`, padding: '30px 5px', overflow: 'scroll'}}>
4041
<NavLink to='changepassword' style={selectStyles}>
4142
<p>Change Password</p>
4243
</NavLink>

0 commit comments

Comments
 (0)