fix: image 모드 파일선택 버튼이 칸 끝까지 늘어나던 문제
세로 배치의 교차정렬이 기본값 stretch라 버튼이 오른쪽 칸 폭(567px)만큼 늘어났다. 시안(txt-area)은 items-start이고 버튼은 shrink-0이다. - align-items: flex-start 추가 — 버튼이 글자만큼만 차지한다 - 설명에 inline-size: 100% — 시안 min-w-full대로 폭을 채운다 Co-Authored-By: Claude Opus 5
@6918d4fd83cb2554e385156daddcd4bfbd5395f0
--- @fox/styles/_fox-file-upload.scss
+++ @fox/styles/_fox-file-upload.scss
... | ... | @@ -150,14 +150,22 @@ |
| 150 | 150 |
transform: translate(-50%, -50%); |
| 151 | 151 |
} |
| 152 | 152 |
|
| 153 |
+ // 버튼은 글자만큼만 차지한다(시안 items-start). 세로 정렬을 stretch로 두면 버튼이 |
|
| 154 |
+ // 칸 끝까지 늘어난다. |
|
| 153 | 155 |
&__image-side {
|
| 154 | 156 |
display: flex; |
| 155 | 157 |
flex: 1 0 0; |
| 156 | 158 |
flex-direction: column; |
| 159 |
+ align-items: flex-start; |
|
| 157 | 160 |
gap: fox.gap(4); |
| 158 | 161 |
min-inline-size: 0; |
| 159 | 162 |
} |
| 160 | 163 |
|
| 164 |
+ // 설명만 폭을 채운다(시안 min-w-full) — 위 정렬 때문에 그냥 두면 글자만큼만 남는다. |
|
| 165 |
+ &__image-side &__description {
|
|
| 166 |
+ inline-size: 100%; |
|
| 167 |
+ } |
|
| 168 |
+ |
|
| 161 | 169 |
// ── 목록 ────────────────────────────────────────────────────────────────── |
| 162 | 170 |
// 줄이 많아지면 상자 안에서만 스크롤한다. |
| 163 | 171 |
// `<ul>`이라 브라우저 기본 여백·글머리표를 먼저 지운다 — 안 지우면 왼쪽에 40px이 붙는다. |
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?