File tree Expand file tree Collapse file tree
DevLog/UI/Common/Component Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments