Skip to content

Commit bea1b44

Browse files
committed
Fix: PageLayout not centered, File upload too big on ultrawide
Fixes: #585
1 parent 7f0a925 commit bea1b44

File tree

6 files changed

+28
-9
lines changed

6 files changed

+28
-9
lines changed

web/src/components/NavigationTitle.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Props {
1212

1313
export default function NavigationTitle (props: Props): JSX.Element {
1414
return (
15-
<>
15+
<div className={styles['nav-title']}>
1616
<div className={styles['page-header']}>
1717
<Link
1818
to={props.backLink != null ? props.backLink : '/'}
@@ -24,6 +24,6 @@ export default function NavigationTitle (props: Props): JSX.Element {
2424
</div>
2525

2626
<div className={styles['page-description']}>{props.description}</div>
27-
</>
27+
</div>
2828
)
2929
}

web/src/pages/Upload.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default function Upload (): JSX.Element {
195195
{validation.fileMsg}
196196
</p>
197197

198-
<button type="submit" onClick={upload}>
198+
<button type="submit" onClick={upload} className={styles['upload-btn']}>
199199
Upload
200200
</button>
201201
</StyledForm>

web/src/style/components/FileInput.module.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
}
66

77
.file-drop-zone {
8+
display: flex;
9+
flex-direction: column;
10+
justify-content: center;
11+
align-items: center;
12+
height: max(150px, 25vh);
813
border-radius: 5px;
914
border: 1px solid rgba(0, 0, 0, 0.23);
10-
text-align: center;
11-
padding: 13% 5%;
1215
cursor: pointer;
1316
}
1417

web/src/style/components/NavigationTitle.module.css

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
.nav-title {
2+
display: flex;
3+
flex-direction: column;
4+
width: 100%;
5+
}
6+
7+
@media only screen and (min-width: 1400px) {
8+
.nav-title {
9+
width: 50%;
10+
margin-left: auto;
11+
margin-right: auto;
12+
}
13+
}
14+
115
.page-header {
216
display: flex;
317
flex-direction: row;

web/src/style/components/PageLayout.module.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
@media only screen and (min-width: 650px) {
77
.main {
88
padding: 1% 0;
9-
margin: 3% 16% 0 16%;
9+
margin: 3% 16% 1% 16%;
1010
}
1111
}
1212

1313
@media only screen and (max-width: 650px) {
1414
.main {
1515
padding: 1% 0;
16-
margin: 3% 3% 0 3%;
16+
margin: 3%;
1717
}
1818
}

web/src/style/components/StyledForm.module.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
min-height: 5em;
1010
}
1111

12-
@media only screen and (min-width: 1000px) {
12+
@media only screen and (min-width: 1400px) {
1313
.form {
1414
width: 50%;
15+
margin-left: auto;
16+
margin-right: auto;
1517
}
1618
}
1719

18-
@media only screen and (max-width: 1000px) {
20+
@media only screen and (max-width: 1400px) {
1921
.form {
2022
width: 100%;
2123
}

0 commit comments

Comments
 (0)