mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 05:23:41 +00:00
Minor layout fixes
This commit is contained in:
parent
4a733f5a30
commit
e93b4911ca
@ -16,22 +16,14 @@ struct PlaylistsView: View {
|
||||
|
||||
var body: some View {
|
||||
Section {
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
HStack(alignment: .top) {
|
||||
VStack(alignment: .center, spacing: 2) {
|
||||
selectPlaylistButton
|
||||
.scaleEffect(0.85)
|
||||
|
||||
if currentPlaylist != nil {
|
||||
VideosView(videos: currentPlaylist!.videos)
|
||||
} else {
|
||||
Spacer()
|
||||
|
||||
selectPlaylistButton
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.padding(.bottom, 5)
|
||||
|
||||
Spacer()
|
||||
|
||||
VStack {
|
||||
if currentPlaylist != nil {
|
||||
VideosView(videos: currentPlaylist!.videos)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -18,15 +18,11 @@ struct TrendingView: View {
|
||||
|
||||
var body: some View {
|
||||
Section {
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
HStack(alignment: .top) {
|
||||
Spacer()
|
||||
|
||||
VStack(alignment: .center, spacing: 2) {
|
||||
HStack {
|
||||
categoryButton
|
||||
countryFlag
|
||||
countryButton
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.scaleEffect(0.85)
|
||||
|
||||
|
@ -3,12 +3,12 @@ import SwiftUI
|
||||
|
||||
struct VideosView: View {
|
||||
@State private var profile = Profile()
|
||||
|
||||
|
||||
@Default(.layout) var layout
|
||||
@Default(.tabSelection) var tabSelection
|
||||
|
||||
var videos: [Video]
|
||||
|
||||
|
||||
var body: some View {
|
||||
Group {
|
||||
if layout == .cells {
|
||||
|
Loading…
Reference in New Issue
Block a user