Skip to content

Commit 37ec133

Browse files
author
Tamoor Shahid
committed
Styled button sizes to match and look consistent. Also put some information in the dialog box.
1 parent a19e92d commit 37ec133

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/screens/OavMover.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ export function CoordinateSystem() {
205205
margin: "5px",
206206
padding: "15px",
207207
backgroundColor: "#1c2025",
208+
width: "100%",
209+
height: "95%",
208210
};
209211

210212
return (
@@ -226,7 +228,7 @@ export function CoordinateSystem() {
226228
})
227229
}
228230
>
229-
Move chip to origin
231+
Go to Origin
230232
</Button>
231233
</Grid2>
232234
<Grid2 size={4}>
@@ -304,7 +306,7 @@ export function CoordinateSystem() {
304306
open={open}
305307
>
306308
<DialogTitle sx={{ m: 0, p: 2 }} id="customized-dialog-title">
307-
Modal title
309+
How to use Co-ordinate System Setup
308310
</DialogTitle>
309311
<IconButton
310312
aria-label="close"
@@ -320,16 +322,11 @@ export function CoordinateSystem() {
320322
</IconButton>
321323
<DialogContent dividers>
322324
<Typography gutterBottom>
323-
Cras mattis consectetur purus sit amet fermentum. Cras justo odio,
324-
dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta
325-
ac consectetur ac, vestibulum at eros.
325+
This only works for an Oxford chip. Fiducial 0 is the origin, the
326+
top left corner. Fiducial 1 is the top right corner and Fiducial 2
327+
is the bottom left corner.
326328
</Typography>
327329
</DialogContent>
328-
<DialogActions>
329-
<Button autoFocus onClick={handleClose}>
330-
Save changes
331-
</Button>
332-
</DialogActions>
333330
</Dialog>
334331
</>
335332
);

0 commit comments

Comments
 (0)