Commit 5a71dfde authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix: side on mobile screen;

parent 2d4c59fc
...@@ -5,15 +5,13 @@ import React from "react"; ...@@ -5,15 +5,13 @@ import React from "react";
export default function Footer() { export default function Footer() {
return ( return (
<Box <Box
className="md:flex text-center justify-end items-center"
sx={{ sx={{
p: 3, p: 3,
display: "flex",
justifyContent: "end",
alignItems: "center",
}} }}
> >
<a <a
className="flex items-center text-slate-800 font-medium no-underline hover:underline md:mx-5" className="flex items-center justify-center my-3 text-slate-800 font-medium no-underline hover:underline md:mx-5"
href="https://github.com/nawasan111/final-exam" href="https://github.com/nawasan111/final-exam"
> >
<GitHub sx={{ mx: 1 }} /> Source code <GitHub sx={{ mx: 1 }} /> Source code
......
...@@ -73,7 +73,7 @@ export default function AdminOrderDetail() { ...@@ -73,7 +73,7 @@ export default function AdminOrderDetail() {
</Button> </Button>
</Link> </Link>
</Box> </Box>
<Paper sx={{ p: 1 }}> <Paper sx={{ p: 1, overflowX: "scroll" }}>
<Table> <Table>
<TableHead> <TableHead>
<TableRow> <TableRow>
...@@ -100,7 +100,7 @@ export default function AdminOrderDetail() { ...@@ -100,7 +100,7 @@ export default function AdminOrderDetail() {
alt="รูปสินค้า" alt="รูปสินค้า"
/> />
</TableCell> </TableCell>
<TableCell>{pdt.name}</TableCell> <TableCell sx={{ minWidth: 70 }}>{pdt.name}</TableCell>
<TableCell> <TableCell>
<div className="max-h-10 overflow-scroll"> <div className="max-h-10 overflow-scroll">
{pdt.detail} {pdt.detail}
......
...@@ -120,7 +120,7 @@ export default function Order() { ...@@ -120,7 +120,7 @@ export default function Order() {
</TableCell> </TableCell>
<TableCell>{order.product_count}</TableCell> <TableCell>{order.product_count}</TableCell>
<TableCell>${order.shipping_price}</TableCell> <TableCell>${order.shipping_price}</TableCell>
<TableCell> <TableCell sx={{minWidth: 70}}>
<Box color={order.pay_status ? "green" : "red"}> <Box color={order.pay_status ? "green" : "red"}>
{order.pay_status ? ( {order.pay_status ? (
"ชำระเงินแล้ว" "ชำระเงินแล้ว"
...@@ -139,7 +139,7 @@ export default function Order() { ...@@ -139,7 +139,7 @@ export default function Order() {
)} )}
</Box> </Box>
</TableCell> </TableCell>
<TableCell> <TableCell sx={{minWidth: 70}}>
{order.send_status == 0 ? ( {order.send_status == 0 ? (
<Box color="gray"> <Box color="gray">
{order.send_status {order.send_status
......
...@@ -31,9 +31,12 @@ export default function OrderDetail() { ...@@ -31,9 +31,12 @@ export default function OrderDetail() {
const fetchOrderDetail = async () => { const fetchOrderDetail = async () => {
if (!user.value?.token) return; if (!user.value?.token) return;
try { try {
let response = await axios.get("/api/u/order/detail?id=" + router.query.id, { let response = await axios.get(
"/api/u/order/detail?id=" + router.query.id,
{
headers: { token: user.value.token }, headers: { token: user.value.token },
}); }
);
setOrderDetailList(response.data); setOrderDetailList(response.data);
} catch (err) { } catch (err) {
console.log(err); console.log(err);
...@@ -69,7 +72,7 @@ export default function OrderDetail() { ...@@ -69,7 +72,7 @@ export default function OrderDetail() {
</Button> </Button>
</Link> </Link>
</Box> </Box>
<Paper sx={{ p: 1 }}> <Paper sx={{ p: 1, overflowX: "scroll" }}>
<Table> <Table>
<TableHead> <TableHead>
<TableRow> <TableRow>
...@@ -96,7 +99,7 @@ export default function OrderDetail() { ...@@ -96,7 +99,7 @@ export default function OrderDetail() {
alt="รูปสินค้า" alt="รูปสินค้า"
/> />
</TableCell> </TableCell>
<TableCell>{pdt.name}</TableCell> <TableCell sx={{minWidth: 70}}>{pdt.name}</TableCell>
<TableCell> <TableCell>
<div className="max-h-10 overflow-scroll"> <div className="max-h-10 overflow-scroll">
{pdt.detail} {pdt.detail}
......
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