A couple of fixes to match the Figma more closely.

This commit is contained in:
Doug
2026-05-27 11:19:20 +01:00
committed by Stefan Ceriu
parent bf1d84bf5e
commit e0b7f1b3fa
50 changed files with 127 additions and 127 deletions
@@ -8,7 +8,6 @@
import Combine
import Compound
import Foundation
import SwiftUI
enum UserIndicatorType: Equatable {
@@ -25,7 +25,7 @@ struct UserIndicatorModalView: View {
HStack(spacing: 8) {
if let icon = indicator.icon {
CompoundIcon(icon, size: .medium, relativeTo: .compound.headingMDBold)
CompoundIcon(icon, size: iconSize, relativeTo: titleFont)
.foregroundColor(.compound.iconPrimary)
}
@@ -69,6 +69,14 @@ struct UserIndicatorModalView: View {
.compound.bodyLG
}
}
private var iconSize: CompoundIcon.Size {
if indicator.message != nil {
.custom(32)
} else {
.medium
}
}
}
struct UserIndicatorModalView_Previews: PreviewProvider, TestablePreview {