From 3f385ac0f8134cb372b55c7b1a37c80cae048113 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Sun, 1 Feb 2026 16:58:38 -0600 Subject: [PATCH] Signed-off-by: Matt Bruce --- .../Rituals/Sheets/PresetLibrarySheet.swift | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Andromida/App/Views/Rituals/Sheets/PresetLibrarySheet.swift b/Andromida/App/Views/Rituals/Sheets/PresetLibrarySheet.swift index ede0ad1..1c92231 100644 --- a/Andromida/App/Views/Rituals/Sheets/PresetLibrarySheet.swift +++ b/Andromida/App/Views/Rituals/Sheets/PresetLibrarySheet.swift @@ -94,10 +94,6 @@ struct PresetLibrarySheet: View { VStack(alignment: .leading, spacing: Design.Spacing.xSmall) { HStack { Text(preset.title).styled(.heading, emphasis: .primary) - - if isAdded { - SymbolIcon("checkmark.circle.fill", size: .badge, color: AppStatus.success) - } } Text(preset.theme).styled(.subheading, emphasis: .secondary) @@ -106,21 +102,27 @@ struct PresetLibrarySheet: View { Spacer() VStack(alignment: .trailing, spacing: Design.Spacing.xSmall) { - Text(String(localized: "\(preset.habits.count) habits")).styled(.caption, emphasis: .tertiary) + if isAdded { + SymbolIcon("checkmark.circle.fill", size: .badge, color: AppStatus.success) + } } } // Habit preview and Time of Day HStack(alignment: .center, spacing: Design.Spacing.small) { - // Habit icons + // Habit icons and count HStack(spacing: Design.Spacing.small) { - ForEach(preset.habits.prefix(4)) { habit in - SymbolIcon(habit.symbolName, size: .badge, color: AppTextColors.tertiary) + HStack(spacing: Design.Spacing.xxxSmall) { + ForEach(preset.habits.prefix(4)) { habit in + SymbolIcon(habit.symbolName, size: .badge, color: AppTextColors.tertiary) + } + + if preset.habits.count > 4 { + Text("+\(preset.habits.count - 4)").styled(.caption2, emphasis: .tertiary) + } } - if preset.habits.count > 4 { - Text("+\(preset.habits.count - 4)").styled(.caption2, emphasis: .tertiary) - } + Text(String(localized: "\(preset.habits.count) habits")).styled(.caption, emphasis: .tertiary) } Spacer()