Skip to content

Commit cd06e03

Browse files
authored
Merge pull request #512 from GTable/fix/user/order
feat: 주문 페이지 UI 수정
2 parents 2f511e7 + 239f879 commit cd06e03

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

apps/nowait-user/src/components/BackHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface PropsType {
88
const BackHeader = ({ title }: PropsType) => {
99
const navigate = useNavigate()
1010
return (
11-
<header className="w-full sticky left-0 top-0 bg-white z-40">
11+
<header className="w-full fixed left-0 top-0 bg-white z-40">
1212
<div className="flex justify-between items-center">
1313
<button onClick={()=>navigate(-1)} className="p-2.5">
1414
<Back />

apps/nowait-user/src/components/common/MenuItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const MenuItem = ({ data, mode }: PropsType) => {
3232
{data.name}
3333
</h2>
3434
{data.isSoldOut && (
35-
<span className="text-[12px] font-bold text-primary bg-[#FFF0EB] rounded-[6px] px-2 py-1.5 align-middle">
35+
<span className="text-[12px] font-bold text-primary bg-[#FFF0EB] rounded-[6px] px-2 py-1.5 align-middle break-keep">
3636
품절
3737
</span>
3838
)}

apps/nowait-user/src/components/common/MenuList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const MenuList = ({
1212
}) => {
1313

1414
return (
15-
<div className="pt-[30px] pb-[10px]">
15+
<div className="pt-[30px] pb-[14px]">
1616
<h1 className="text-title-20-semibold mb-3">메뉴</h1>
1717
<ul>
1818
{!isLoading ? (

apps/nowait-user/src/pages/order/home/StorePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const StorePage = () => {
3838
console.log(menus, "asd");
3939
return (
4040
<div>
41-
<div className="flex flex-col flex-grow min-h-dvh pt-7.5 px-5">
41+
<div className={`flex flex-col flex-grow min-h-dvh pt-7.5 ${cart && cart.length > 0 ? "pb-[116px]" : ""} px-5`}>
4242
<div className="flex-grow">
4343
<StoreHeader storeName={menus?.storeName} isLoading={isLoading} />
4444
<SectionDivider />

apps/nowait-user/src/pages/order/orderList/OrderListPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ const OrderListPage = () => {
6262
return (
6363
<div>
6464
<BackHeader title="장바구니" />
65-
<section className="flex flex-col flex-grow min-h-[calc(100dvh-164px)] pt-7 px-5">
65+
<section className="flex flex-col flex-grow min-h-[calc(100dvh-164px)] pt-7 px-5 mt-[48px]">
6666
<h1 className="text-headline-22-bold mb-5">
6767
주문 총 <span className="text-primary">{cart.length}</span>
6868
</h1>
69-
<motion.ul className="flex justify-center flex-col" layout>
69+
<motion.ul className="flex justify-center flex-col mb-[116px]" layout>
7070
<AnimatePresence mode="sync">
7171
{cart.map((item) => {
7272
return (

apps/nowait-user/src/pages/order/remittance/RemittancePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const RemittancePage = () => {
7272
};
7373
console.log(remittance);
7474
return (
75-
<div className="flex flex-col flex-grow">
75+
<div className="flex flex-col flex-grow mt-[48px] mb-[116px]">
7676
<BackHeader title="주문하기" />
7777
<section className="px-5">
7878
<OrderSummary cart={cart} />

0 commit comments

Comments
 (0)