UI bug fixes (regarding recipe servings adjustment)
This commit is contained in:
@@ -67,10 +67,10 @@ struct RecipeIngredientSection: View {
|
||||
if viewModel.observableRecipeDetail.ingredientMultiplier != Double(viewModel.observableRecipeDetail.recipeYield) {
|
||||
HStack() {
|
||||
Image(systemName: "exclamationmark.triangle.fill")
|
||||
.foregroundStyle(.red)
|
||||
Text("Unable to adjust some ingredients!")
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
Text("Marked ingredients could not be adjusted!")
|
||||
.foregroundStyle(.secondary)
|
||||
}.padding(.top)
|
||||
}
|
||||
|
||||
if viewModel.editMode {
|
||||
|
||||
@@ -80,9 +80,9 @@ struct SettingsView: View {
|
||||
HStack {
|
||||
Text("Decimal number format")
|
||||
Spacer()
|
||||
Picker("Decimal Separator", selection: $userSettings.decimalNumberSeparator) {
|
||||
Text("1.42 (Point)").tag(".")
|
||||
Text("1,42 (Comma)").tag(",")
|
||||
Picker("", selection: $userSettings.decimalNumberSeparator) {
|
||||
Text("Point (e.g. 1.42)").tag(".")
|
||||
Text("Comma (e.g. 1,42)").tag(",")
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user