fix: 콘텐츠 폼 하단 버튼을 FoxButtonPanel로
시안 btn-page(5402:12368) — 80px 여백, 그룹 하나는 가운데, 버튼은 lg(높이 56)에 최소폭 160. 수제 .actions(가운데 flex + 32px 여백, md 버튼)를 걷어내고 패널이 전부 맡는다. 쇼츠·만화·퀴즈 세 폼이 같은 컴포넌트를 쓴다. Co-Authored-By: Claude Opus 5
@336a94407072fae01aaad656bc1579e870615740
--- app/(protected)/(basic)/contents/_components/content-form-actions.tsx
+++ app/(protected)/(basic)/contents/_components/content-form-actions.tsx
... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 |
import { useRouter } from 'next/navigation';
|
| 4 | 4 |
import { FoxButton } from '@fox/core/components/fox-button';
|
| 5 | 5 |
import { FoxButtonGroup } from '@fox/core/components/fox-button-group';
|
| 6 |
-import styles from './content-form.module.scss'; |
|
| 6 |
+import { FoxButtonPanel } from '@fox/core/components/fox-button-panel';
|
|
| 7 | 7 |
|
| 8 | 8 |
interface ContentFormActionsProps {
|
| 9 | 9 |
submitLabel: string; |
... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 |
pending: boolean; |
| 12 | 12 |
} |
| 13 | 13 |
|
| 14 |
-/** 폼 하단의 [목록] [등록/수정]. 시안이 가운데 정렬이다. */ |
|
| 14 |
+/** 폼 하단의 [목록] [등록/수정] — 시안 btn-page(5402:12368). 그룹이 하나라 패널이 가운데 세운다. */ |
|
| 15 | 15 |
export function ContentFormActions({
|
| 16 | 16 |
submitLabel, |
| 17 | 17 |
listHref, |
... | ... | @@ -20,22 +20,22 @@ |
| 20 | 20 |
const router = useRouter(); |
| 21 | 21 |
|
| 22 | 22 |
return ( |
| 23 |
- <div className={styles.actions}>
|
|
| 24 |
- <FoxButtonGroup size="md"> |
|
| 23 |
+ <FoxButtonPanel> |
|
| 24 |
+ <FoxButtonGroup size="lg"> |
|
| 25 | 25 |
<FoxButton |
| 26 | 26 |
type="default" |
| 27 |
- size="md" |
|
| 27 |
+ size="lg" |
|
| 28 | 28 |
label="목록" |
| 29 | 29 |
onAction={() => router.push(listHref)}
|
| 30 | 30 |
/> |
| 31 | 31 |
<FoxButton |
| 32 | 32 |
type="primary" |
| 33 |
- size="md" |
|
| 33 |
+ size="lg" |
|
| 34 | 34 |
htmlType="submit" |
| 35 | 35 |
label={submitLabel}
|
| 36 | 36 |
loading={pending}
|
| 37 | 37 |
/> |
| 38 | 38 |
</FoxButtonGroup> |
| 39 |
- </div> |
|
| 39 |
+ </FoxButtonPanel> |
|
| 40 | 40 |
); |
| 41 | 41 |
} |
--- app/(protected)/(basic)/contents/_components/content-form.module.scss
+++ app/(protected)/(basic)/contents/_components/content-form.module.scss
... | ... | @@ -86,12 +86,6 @@ |
| 86 | 86 |
color: fox.color(font-neutral-subtle); |
| 87 | 87 |
} |
| 88 | 88 |
|
| 89 |
-.actions {
|
|
| 90 |
- display: flex; |
|
| 91 |
- justify-content: center; |
|
| 92 |
- padding-block-start: fox.padding(8); |
|
| 93 |
-} |
|
| 94 |
- |
|
| 95 | 89 |
.thumbnail {
|
| 96 | 90 |
display: flex; |
| 97 | 91 |
align-items: flex-start; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?