Skip to content

Commit 3a2d70b

Browse files
elesahichclaude
andauthored
[MOB-6226] SUBezierTag 라벨 단일 라인 truncate (#143)
SUBezierTag는 단일 라인 스펙이지만, 내부 `Text.fixedSize(horizontal: true)`가 폭을 강제해 부모가 폭을 제약해도 라벨이 truncate되지 않고 컨테이너를 넘쳤다. 리스트 셀 등 폭이 제한된 컨텍스트에서 긴 태그가 넘치는 문제를 해결한다. - `.fixedSize(horizontal: true, vertical: false)`를 `.lineLimit(1)` + `.truncationMode(.tail)`로 교체. 폭이 넉넉하면 기존과 동일하게 전체 라벨을 표시하고, 폭이 제약되면 tail 말줄임한다. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 32a334a commit 3a2d70b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/BezierSwift/MasterComponent/BezierTag/SUBezierTag.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public struct SUBezierTag: View, Themeable {
3939
.padding(.vertical, self.size.verticalLineSpacing)
4040
.foregroundColor(self.palette(self.variant.foregroundToken))
4141
.padding(.horizontal, self.size.textHorizontalPadding)
42-
.fixedSize(horizontal: true, vertical: false)
42+
.lineLimit(1)
43+
.truncationMode(.tail)
4344
}
4445
if let onDelete = self.onDelete {
4546
Button(action: onDelete) {

0 commit comments

Comments
 (0)