Skip to content

Commit c0d0ebf

Browse files
committed
Standardise styling for buttons
1 parent 2dafe9e commit c0d0ebf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

frontend/src/components/NewQuestion/QuestionImage.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ const QuestionImage: React.FC<QuestionImageProps> = ({ url, handleClickOpen }) =
2020
":hover .moreInfo": {
2121
opacity: 1,
2222
},
23-
borderRadius: 3,
23+
borderRadius: 1,
2424
overflow: "hidden",
2525
}}
2626
>
2727
<img
2828
src={url}
2929
loading="lazy"
30-
style={{ width: "100%", height: "100%", objectFit: "cover", borderRadius: 3 }}
30+
style={{ width: "100%", height: "100%", objectFit: "cover", borderRadius: 1 }}
3131
alt="question image"
3232
/>
3333

@@ -38,7 +38,7 @@ const QuestionImage: React.FC<QuestionImageProps> = ({ url, handleClickOpen }) =
3838
width="100%"
3939
height="100%"
4040
position="absolute"
41-
borderRadius={3}
41+
borderRadius={1}
4242
display="flex"
4343
justifyContent="center"
4444
alignItems="center"
@@ -53,12 +53,12 @@ const QuestionImage: React.FC<QuestionImageProps> = ({ url, handleClickOpen }) =
5353
navigator.clipboard.writeText(`![image](${url})`);
5454
toast.success("Image URL copied to clipboard");
5555
}}
56-
sx={{ color: "white" }}
56+
sx={{ color: "#fff" }}
5757
>
5858
<ContentCopyIcon />
5959
</IconButton>
6060

61-
<IconButton onClick={() => handleClickOpen(url)} sx={{ color: "white" }}>
61+
<IconButton onClick={() => handleClickOpen(url)} sx={{ color: "#fff " }}>
6262
<FullscreenIcon />
6363
</IconButton>
6464
</Box>

frontend/src/components/NewQuestion/QuestionImageContainer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ const QuestionImageContainer: React.FC<QuestionImageContainerProps> = ({
4444
variant="contained"
4545
disableElevation={true}
4646
sx={(theme) => ({
47-
borderRadius: 3,
47+
borderRadius: 1,
4848
height: 128,
4949
width: "100%",
50-
backgroundColor: "rgba(0, 0, 0, 0.02)",
50+
backgroundColor: "#fff",
5151
color: "#757575",
5252
border: "1px solid",
5353
borderColor: theme.palette.grey[400],
@@ -79,10 +79,10 @@ const QuestionImageContainer: React.FC<QuestionImageContainerProps> = ({
7979
variant="contained"
8080
disableElevation={true}
8181
sx={(theme) => ({
82-
borderRadius: 3,
82+
borderRadius: 1,
8383
height: 128,
8484
width: 128,
85-
backgroundColor: "rgba(0, 0, 0, 0.02)",
85+
backgroundColor: "#fff",
8686
color: "#757575",
8787
border: "1px solid",
8888
borderColor: theme.palette.grey[400],

0 commit comments

Comments
 (0)