mirror of
https://github.com/yattee/yattee.git
synced 2025-08-04 01:34:10 +00:00
Minor layout fixes
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
@@ -14,6 +14,8 @@ struct ChaptersView: View {
|
||||
}
|
||||
Color.clear.frame(height: 50)
|
||||
.listRowBackground(Color.clear)
|
||||
.backport
|
||||
.listRowSeparator(false)
|
||||
}
|
||||
.listRowBackground(Color.clear)
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
@@ -34,6 +34,8 @@ struct PlayerQueueView: View {
|
||||
#endif
|
||||
Color.clear.padding(.bottom, 50)
|
||||
.listRowBackground(Color.clear)
|
||||
.backport
|
||||
.listRowSeparator(false)
|
||||
}
|
||||
#if os(macOS)
|
||||
.listStyle(.inset)
|
||||
|
@@ -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)
|
||||
}
|
||||
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user