Skip to content

Commit e9bd29d

Browse files
committed
Fix styling for new question frontend
1 parent cb4b7b3 commit e9bd29d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frontend/src/components/NewQuestion/QuestionImage.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ const QuestionImage: React.FC<QuestionImageProps> = ({ url, handleClickOpen }) =
3333

3434
<Box
3535
className="moreInfo"
36+
top={0}
37+
left={0}
38+
width="100%"
39+
height="100%"
40+
position="absolute"
41+
borderRadius={3}
42+
display="flex"
43+
justifyContent="center"
44+
alignItems="center"
3645
sx={{
37-
top: 0,
38-
left: 0,
39-
width: "100%",
40-
height: "100%",
41-
position: "absolute",
4246
opacity: 0,
43-
borderRadius: 3,
4447
backgroundColor: "#75757599",
45-
display: "flex",
46-
justifyContent: "center",
47-
alignItems: "center",
4848
transition: "opacity 0.5s ease",
4949
}}
5050
>

frontend/src/pages/NewQuestion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const NewQuestion = () => {
122122
};
123123

124124
return (
125-
<Box sx={{ maxWidth: "70vw", margin: "auto" }}>
125+
<Box maxWidth={"70vw"} margin={"auto"}>
126126
<IconButton onClick={handleBack}>
127127
<ArrowBackIcon />
128128
</IconButton>

0 commit comments

Comments
 (0)