feat: Updates flagged status label styles
This commit is contained in:
@@ -228,7 +228,9 @@ public struct FlaggedMeasurementListView: View {
|
||||
}
|
||||
ForEach(store.estimatedMeasurements) { measurement in
|
||||
Section {
|
||||
FlaggedEquipmentMeasurementView(measurement.flaggedMeasurement)
|
||||
FlaggedEquipmentMeasurementView(
|
||||
measurement.flaggedMeasurement
|
||||
)
|
||||
} header: {
|
||||
HStack {
|
||||
Text(measurement.name)
|
||||
@@ -268,12 +270,10 @@ public struct FlaggedMeasurementListView: View {
|
||||
}
|
||||
.onAppear { send(.onAppear) }
|
||||
.flaggedMessageViewStyle(
|
||||
horizontalSizeClass == .compact
|
||||
? AnyFlaggedMessageViewStyle(.vertical)
|
||||
: AnyFlaggedMessageViewStyle(.horizontal)
|
||||
.automatic(horizontalSizeClass: horizontalSizeClass)
|
||||
)
|
||||
// .flaggedStatusLabelStyle(.font(.caption))
|
||||
// .flaggedMessageLabelStyle(.font(.caption, fontWeight: .bold))
|
||||
.flaggedStatusLabelStyle(.textLabel)
|
||||
.flaggedMessageLabelStyle(.font(.caption))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,4 +313,19 @@ private let flaggedMeasurements = IdentifiedArrayOf<FlaggedMeasurementsList.Stat
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview("Landscape", traits: .landscapeLeft) {
|
||||
NavigationStack {
|
||||
FlaggedMeasurementListView(
|
||||
store: Store(
|
||||
initialState: FlaggedMeasurementsList.State(
|
||||
sharedSettings: Shared(sharedSettings)
|
||||
)
|
||||
) {
|
||||
FlaggedMeasurementsList()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user