Recipe edit view fixes
This commit is contained in:
Binary file not shown.
@@ -37,9 +37,9 @@ struct RecipeView: View {
|
|||||||
.frame(height: 400)
|
.frame(height: 400)
|
||||||
.foregroundStyle(
|
.foregroundStyle(
|
||||||
LinearGradient(
|
LinearGradient(
|
||||||
gradient: Gradient(colors: [.white, .nextcloudBlue]),
|
gradient: Gradient(colors: [.nextcloudBlue, .nextcloudDarkBlue]),
|
||||||
startPoint: .top,
|
startPoint: .topLeading,
|
||||||
endPoint: .bottom
|
endPoint: .bottomTrailing
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -172,8 +172,6 @@ struct RecipeView: View {
|
|||||||
)
|
)
|
||||||
if let image = viewModel.recipeImage {
|
if let image = viewModel.recipeImage {
|
||||||
imageHeight = image.size.height < 350 ? image.size.height : 350
|
imageHeight = image.size.height < 350 ? image.size.height : 350
|
||||||
} else {
|
|
||||||
imageHeight = 100
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Prepare view for a new recipe
|
// Prepare view for a new recipe
|
||||||
@@ -373,6 +371,7 @@ struct RecipeViewToolBar: ToolbarContent {
|
|||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "ellipsis.circle")
|
Image(systemName: "ellipsis.circle")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user