Skip to content

Commit 85fdba4

Browse files
committed
ui: 중요 표시 UI 이동
1 parent 51d6543 commit 85fdba4

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

DevLog/UI/Common/Component/TodoItemRow.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@ struct TodoItemRow: View {
2121
.resizable()
2222
.frame(width: sceneWidth * 0.08, height: sceneWidth * 0.08)
2323
.foregroundStyle(item.isCompleted ? .green : .secondary)
24-
VStack(alignment: .leading, spacing: 5) {
24+
VStack(alignment: .leading, spacing: 0) {
2525
HStack {
26-
if item.isPinned {
27-
Image(systemName: "star.fill")
28-
.font(.headline)
29-
.foregroundStyle(.orange)
30-
}
3126
Text(item.title)
3227
.font(.headline)
3328
.foregroundStyle(Color(.label))
@@ -39,7 +34,15 @@ struct TodoItemRow: View {
3934
.fixedSize(horizontal: true, vertical: false)
4035
}
4136
}
42-
RelativeTimeText(date: item.updatedAt)
37+
HStack(spacing: 4) {
38+
if item.isPinned {
39+
Image(systemName: "star.fill")
40+
.font(.headline)
41+
.foregroundStyle(.orange)
42+
}
43+
RelativeTimeText(date: item.updatedAt)
44+
}
45+
.frame(height: UIFont.preferredFont(forTextStyle: .headline).lineHeight)
4346
if !item.tags.isEmpty {
4447
TagList(item.tags, lineLimit: 1)
4548
}

0 commit comments

Comments
 (0)