cart: adjust layout
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
.cartContainer {
|
||||
padding: 15px;
|
||||
transition: all 0.3s ease;
|
||||
height: 92vh;
|
||||
overflow: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PlusOutlined } from "@ant-design/icons";
|
||||
import { Card, Divider, Form, Space } from "antd";
|
||||
import { Card, Divider, Form, Space, Layout } from "antd";
|
||||
import ArabicPrice from "components/ArabicPrice";
|
||||
import CartActionsButtons from "components/CartActionsButtons/CartActionsButtons.tsx";
|
||||
import ImageWithFallback from "components/ImageWithFallback";
|
||||
@@ -62,9 +62,9 @@ export default function CartMobileTabletLayout({
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Layout>
|
||||
<ProHeader>{t("cart.title")}</ProHeader>
|
||||
<div
|
||||
<Layout.Content
|
||||
className={`${styles.cartContainer} '${styles.cartLayout}' ${getResponsiveClass()}`}
|
||||
>
|
||||
<Space
|
||||
@@ -287,11 +287,9 @@ export default function CartMobileTabletLayout({
|
||||
|
||||
{/* Invoice Summary */}
|
||||
<OrderSummary />
|
||||
{/* space keeper*/}
|
||||
<div style={{ height: "10vh" }} />
|
||||
</Space>
|
||||
</div>
|
||||
</Layout.Content>
|
||||
<CartFooter form={form} />
|
||||
</>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { colors } from "ThemeConstants.ts";
|
||||
import { Button, FormInstance, message } from "antd";
|
||||
import { Button, FormInstance, message, Layout } from "antd";
|
||||
import { selectCart } from "features/order/orderSlice.ts";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate, useParams } from "react-router-dom";
|
||||
@@ -30,7 +30,7 @@ export default function CartFooter({ form }: CartFooterProps) {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={styles.cartFooter}>
|
||||
<Layout.Footer className={styles.cartFooter}>
|
||||
<Link
|
||||
to={`/${subdomain}/menu?${orderType ? `orderType=${orderType}` : ""}`}
|
||||
style={{
|
||||
@@ -64,6 +64,6 @@ export default function CartFooter({ form }: CartFooterProps) {
|
||||
>
|
||||
{t("cart.checkout")}
|
||||
</Button>
|
||||
</div>
|
||||
</Layout.Footer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.cartFooter {
|
||||
width: 100%;
|
||||
padding: 16px 16px 0;
|
||||
position: fixed;
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 80px;
|
||||
|
||||
Reference in New Issue
Block a user