Skip to content

Commit fcff20d

Browse files
authored
[#622] BottomActionButton 패딩 수정 (#626)
* fix: BottomActionButton 패딩 값 수정 * fix: 루트 이외의 페이지 BottomActionButton에 컨탠츠가 가려지는 현상 수정 * refactor: 바텀액션버튼과 활용될 padding-bottom 커스텀 클래스 작성 * fix: pb-action-button 10px 축소 * fix: pb-action-button env값 제거 * chore: 필요없는 주석 제거
1 parent 2e0bfcd commit fcff20d

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

src/app/book/[bookId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const BookDetailPage = ({
3434
<>
3535
<BookTopNavigation bookId={bookId} />
3636
<SSRSafeSuspense fallback={<BookPageSkeleton />}>
37-
<div className="flex flex-col gap-[3rem] pb-[5rem] pt-[1rem]">
37+
<div className="pb-action-button flex flex-col gap-[3rem] pt-[1rem]">
3838
<BookInfo bookId={bookId} />
3939
<div className="flex flex-col gap-[1rem]">
4040
<Heading text="책 코멘트" />

src/app/group/[groupId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const DetailBookGroupPage = ({
2929
</BookGroupNavigation>
3030

3131
<SSRSafeSuspense fallback={<PageSkeleton />}>
32-
<div className="flex flex-col gap-[2rem]">
32+
<div className="pb-action-button flex flex-col gap-[2rem]">
3333
<BookGroupInfo groupId={groupId} />
3434
<Divider />
3535
<div className="flex flex-col gap-[1rem]">

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,8 @@
9494
box-shadow: inset 0 0 3rem #dddddd;
9595
@apply bg-placeholder;
9696
}
97+
98+
.pb-action-button {
99+
@apply pb-[6.3rem];
100+
}
97101
}

src/v1/base/BottomActionButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const BottomActionButton = ({
1111
...props
1212
}: BottomActionButtonProps) => {
1313
return (
14-
<footer className="fixed bottom-0 left-0 right-0 z-10 mx-auto w-full max-w-[43rem] bg-white px-[2.0rem] py-[1.5rem]">
14+
<footer className="fixed bottom-0 left-0 right-0 z-10 mx-auto w-full max-w-[43rem] bg-white px-[2.0rem] pb-[calc(env(safe-area-inset-bottom)+1.5rem)] pt-[1.5rem]">
1515
<Button size="full" {...props}>
1616
{children}
1717
</Button>

src/v1/bookGroup/create/steps/SelectJoinTypeStep/SelectJoinTypeStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const SelectJoinTypeStep = ({ onSubmit }: MoveFunnelStepProps) => {
1616
} = useFormContext<SelectJoinTypeStepFormValues>();
1717

1818
return (
19-
<article>
19+
<article className="pb-action-button">
2020
<h2 className="mb-[3rem] font-subheading-bold">
2121
가입은 어떻게 받을까요?
2222
</h2>

src/v1/bookGroup/create/steps/SetUpDetailStep/SetUpDetailStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const SetUpDetailStep = ({
3737
} = useFormContext<SetUpDetailStepFormValues>();
3838

3939
return (
40-
<article className="flex flex-col gap-[2.5rem] overflow-y-scroll pb-[7rem]">
40+
<article className="pb-action-button flex flex-col gap-[2.5rem] overflow-y-scroll">
4141
<h2 className="font-subheading-bold">모임 정보를 설정해주세요</h2>
4242
<TitleField name={'title'} />
4343
<SelectedBookInfoField

src/v1/layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Layout = ({ children }: LayoutProps) => {
1616

1717
const dynamicClass = isRootPath
1818
? 'pb-[calc(env(safe-area-inset-bottom)+7rem)] pt-[2rem]'
19-
: 'pt-[5.4rem] pb-[2rem]';
19+
: 'pb-[calc(env(safe-area-inset-bottom)+2rem)] pt-[5.4rem]';
2020

2121
return (
2222
<>

0 commit comments

Comments
 (0)