Minor layout fixes

This commit is contained in:
Arkadiusz Fal
2022-11-18 22:27:13 +01:00
parent 414b6210c0
commit a629bec1ff
8 changed files with 33 additions and 4 deletions

View File

@@ -18,8 +18,11 @@ struct RelatedView: View {
VideoContextMenuView(video: video)
}
}
Color.clear.padding(.bottom, 50)
.listRowBackground(Color.clear)
.backport
.listRowSeparator(false)
}
}
}
@@ -38,5 +41,6 @@ struct RelatedView: View {
struct RelatedView_Previews: PreviewProvider {
static var previews: some View {
RelatedView()
.injectFixtureEnvironmentObjects()
}
}

View File

@@ -14,6 +14,8 @@ struct ChaptersView: View {
}
Color.clear.frame(height: 50)
.listRowBackground(Color.clear)
.backport
.listRowSeparator(false)
}
.listRowBackground(Color.clear)
}

View File

@@ -25,6 +25,7 @@ struct CommentsView: View {
.borderBottom(height: comment != last ? 0.5 : 0, color: Color("ControlsBorderColor"))
}
}
.padding(.top, 10)
if embedInScrollView {
ScrollView(.vertical, showsIndicators: false) {

View File

@@ -34,6 +34,8 @@ struct PlayerQueueView: View {
#endif
Color.clear.padding(.bottom, 50)
.listRowBackground(Color.clear)
.backport
.listRowSeparator(false)
}
#if os(macOS)
.listStyle(.inset)

View File

@@ -66,10 +66,10 @@ struct VideoActions: View {
}
}
.padding(.horizontal)
.borderBottom(height: 0.5, color: Color("ControlsBorderColor"))
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.frame(height: 50)
.borderBottom(height: 0.5, color: Color("ControlsBorderColor"))
.foregroundColor(.accentColor)
}

View File

@@ -42,8 +42,8 @@ struct ControlsBar: View {
.labelStyle(.iconOnly)
.padding(.horizontal)
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: barHeight)
.borderTop(height: borderTop ? 0.4 : 0, color: Color("ControlsBorderColor"))
.borderBottom(height: borderBottom ? 0.4 : 0, color: Color("ControlsBorderColor"))
.borderTop(height: borderTop ? 0.5 : 0, color: Color("ControlsBorderColor"))
.borderBottom(height: borderBottom ? 0.5 : 0, color: Color("ControlsBorderColor"))
.modifier(ControlBackgroundModifier(enabled: backgroundEnabled, edgesIgnoringSafeArea: .bottom))
#if os(iOS)
.background(