mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
A couple of fixes to match the Figma more closely.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user