Skip to content

Commit ec96e6d

Browse files
committed
Center card
1 parent 35e110c commit ec96e6d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

frontend/src/App.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.cardContainer {
22
position: absolute;
3-
top: 40%;
4-
left: 48.8%;
5-
margin: -100px 0 0 -150px;
3+
top: 50%;
4+
left: 50%;
5+
transform: translate(-50%, -50%);
66
}
77

88
.loading {

frontend/src/Components/ComponentUtils/ImageUploadCard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const useStyles = makeStyles({
1818
paddingTop: "10px",
1919
paddingBottom: "10px",
2020
borderRadius: "7px",
21-
boxShadow: "0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)"
21+
boxShadow: "0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",
22+
display: "grid",
23+
placeItems: "center"
2224
},
2325
headerText: {
2426
fontFamily: "roboto",

0 commit comments

Comments
 (0)