cart: adjust layout

This commit is contained in:
2025-11-16 15:33:01 +03:00
parent 841dad4346
commit b19b5b6ee2
5 changed files with 15 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
import { Button, Typography } from "antd";
import { Button, Typography, Layout } from "antd";
import BackIcon from "components/Icons/BackIcon";
import { FunctionComponent, ReactNode } from "react";
import { useNavigate } from "react-router-dom";
@@ -33,9 +33,12 @@ const ProHeader: FunctionComponent<ProHeaderProps> = ({
};
return (
<div
<Layout.Header
style={{
position: "sticky",
top: 0,
display: "flex",
zIndex: 1,
flexDirection: isRTL ? "row-reverse" : "row",
justifyContent: "space-between",
alignItems: "center", // This centers vertically
@@ -97,7 +100,7 @@ const ProHeader: FunctionComponent<ProHeaderProps> = ({
) : (
children
)}
</div>
</Layout.Header>
);
};