From a82394bccacb9ebc62ba625fa55da36030020525 Mon Sep 17 00:00:00 2001 From: Cosmin Mihai Date: Sat, 25 Jan 2025 23:12:02 +0200 Subject: [PATCH] ui: Add photo lines min height. --- .../DashboardDialogs/DeleteProjectDialog.swift | 1 - osx/PhotoBook/PhotoBook/Pages/TableContentView.swift | 11 ++--------- osx/PhotoBook/PhotoBook/UPL/UnstagedPhotoLine.swift | 1 + 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/osx/PhotoBook/PhotoBook/DashboardDialogs/DeleteProjectDialog.swift b/osx/PhotoBook/PhotoBook/DashboardDialogs/DeleteProjectDialog.swift index ed0efca0..f40ec695 100644 --- a/osx/PhotoBook/PhotoBook/DashboardDialogs/DeleteProjectDialog.swift +++ b/osx/PhotoBook/PhotoBook/DashboardDialogs/DeleteProjectDialog.swift @@ -21,7 +21,6 @@ struct DeleteProjectDialog: View { TextField("", text: $projectDeleteText) .textFieldStyle(RoundedBorderTextFieldStyle()) } - Das HStack { Button("Delete") { diff --git a/osx/PhotoBook/PhotoBook/Pages/TableContentView.swift b/osx/PhotoBook/PhotoBook/Pages/TableContentView.swift index d0b24844..b9ca9bae 100644 --- a/osx/PhotoBook/PhotoBook/Pages/TableContentView.swift +++ b/osx/PhotoBook/PhotoBook/Pages/TableContentView.swift @@ -264,17 +264,10 @@ struct TableContentView: View, PhotobookUIListener { VStack { ScrollView(.horizontal, showsIndicators: false) { HStack { - ForEach(0..<10, id: \.self) { item in - RoundedRectangle(cornerRadius: 8) - .fill(Color.green) - .frame(width: 80, height: 80) - .overlay( - Text("Item \(item)") - .foregroundColor(.white) - ) - } + } .padding(.horizontal) + .frame(minHeight:80) } UnstagedPhotoLine(model: uplModel, canvasImage: $canvasModel.mainImage) diff --git a/osx/PhotoBook/PhotoBook/UPL/UnstagedPhotoLine.swift b/osx/PhotoBook/PhotoBook/UPL/UnstagedPhotoLine.swift index 6840caf9..3c9afafa 100644 --- a/osx/PhotoBook/PhotoBook/UPL/UnstagedPhotoLine.swift +++ b/osx/PhotoBook/PhotoBook/UPL/UnstagedPhotoLine.swift @@ -43,6 +43,7 @@ struct UnstagedPhotoLine: View } } .padding(.horizontal) + .frame(minHeight:80) } } }