[FIX] Various UI issues

This commit is contained in:
Fabian Thies
2023-02-04 12:55:25 +01:00
parent 132b140af2
commit 767d878051
4 changed files with 5 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ struct AppRowView: View {
} }
.padding() .padding()
.tintedBackground(Color(storeApp?.tintColor ?? UIColor(Color.accentColor))) .tintedBackground(Color(storeApp?.tintColor ?? UIColor(Color.accentColor)))
.clipShape(RoundedRectangle(cornerRadius: 30, style: .circular)) .clipShape(RoundedRectangle(cornerRadius: 24, style: .circular))
} }
} }

View File

@@ -19,6 +19,7 @@ struct BrowseAppPreviewView: View {
if let subtitle = storeApp.subtitle { if let subtitle = storeApp.subtitle {
Text(subtitle) Text(subtitle)
.multilineTextAlignment(.center)
} }
if !storeApp.screenshotURLs.isEmpty { if !storeApp.screenshotURLs.isEmpty {
@@ -28,6 +29,7 @@ struct BrowseAppPreviewView: View {
} }
} }
.frame(height: 300) .frame(height: 300)
.shadow(radius: 8)
} }
} }
} }

View File

@@ -91,7 +91,7 @@ struct NewsItemView: View {
alignment: .topLeading alignment: .topLeading
) )
.background(Color(newsItem.tintColor)) .background(Color(newsItem.tintColor))
.clipShape(RoundedRectangle(cornerRadius: 30, style: .circular)) .clipShape(RoundedRectangle(cornerRadius: 24, style: .circular))
} }

View File

@@ -61,6 +61,7 @@ struct RootView: View {
} }
} }
.padding() .padding()
.frame(maxWidth: .infinity)
.foregroundColor(.white) .foregroundColor(.white)
.background(Color.accentColor) .background(Color.accentColor)
.clipShape(RoundedRectangle(cornerRadius: 16)) .clipShape(RoundedRectangle(cornerRadius: 16))