Recipe edit view fixes

This commit is contained in:
VincentMeilinger
2024-03-05 22:07:51 +01:00
parent 11359e11d4
commit 92decb773e
2 changed files with 4 additions and 5 deletions

View File

@@ -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")
} }
} }
} }
} }