Commit 2d4c59fc authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix: admin page on mobile;

parent 31785e10
...@@ -45,10 +45,7 @@ export default function AdminCategory() { ...@@ -45,10 +45,7 @@ export default function AdminCategory() {
<Head> <Head>
<title>จัดการหมวดหมู่ | admin</title> <title>จัดการหมวดหมู่ | admin</title>
</Head> </Head>
<Box> <Box sx={{maxWidth: 800, mx: "auto"}}>
<Grid container>
<Grid item lg={3} md={0}></Grid>
<Grid item lg={6} md={12}>
<Box sx={{ mb: 2, textAlign: "right" }}> <Box sx={{ mb: 2, textAlign: "right" }}>
<Button onClick={() => setModal(true)}> <Button onClick={() => setModal(true)}>
<Add /> เพิ่มหมวดหมู่ <Add /> เพิ่มหมวดหมู่
...@@ -112,9 +109,6 @@ export default function AdminCategory() { ...@@ -112,9 +109,6 @@ export default function AdminCategory() {
</Table> </Table>
</div> </div>
</Paper> </Paper>
</Grid>
<Grid item lg={3} md={0}></Grid>
</Grid>
{deleteState.open && ( {deleteState.open && (
<DeleteCategory <DeleteCategory
......
...@@ -102,7 +102,7 @@ export default function Member() { ...@@ -102,7 +102,7 @@ export default function Member() {
</Select> </Select>
</FormControl> </FormControl>
</Box> </Box>
<Paper sx={{ p: 2 }}> <Paper sx={{ p: 2, overflowX: "scroll" }}>
<Table> <Table>
<TableHead> <TableHead>
<TableRow> <TableRow>
......
...@@ -71,7 +71,7 @@ export default function Stock() { ...@@ -71,7 +71,7 @@ export default function Stock() {
</Button> </Button>
</Box> </Box>
<Box className="flex justify-start mb-3 px-10 max-w-[1520px] mx-auto"> <Box className="flex justify-start mb-3 sm:px-10 max-w-[1520px] mx-auto">
<Box sx={{ display: "flex", overflowX: "scroll", maxWidth: "100vw" }}> <Box sx={{ display: "flex", overflowX: "scroll", maxWidth: "100vw" }}>
<Button <Button
variant={category === -1 ? "contained" : "text"} variant={category === -1 ? "contained" : "text"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment