Minor layout fixes

This commit is contained in:
Arkadiusz Fal 2021-07-08 01:01:54 +02:00
parent 4a733f5a30
commit e93b4911ca
3 changed files with 11 additions and 23 deletions

View File

@ -16,22 +16,14 @@ struct PlaylistsView: View {
var body: some View { var body: some View {
Section { Section {
VStack(alignment: .leading, spacing: 2) { VStack(alignment: .center, spacing: 2) {
HStack(alignment: .top) { selectPlaylistButton
.scaleEffect(0.85)
if currentPlaylist != nil {
VideosView(videos: currentPlaylist!.videos)
} else {
Spacer() Spacer()
selectPlaylistButton
Spacer()
}
.padding(.bottom, 5)
Spacer()
VStack {
if currentPlaylist != nil {
VideosView(videos: currentPlaylist!.videos)
}
} }
} }
} }

View File

@ -18,15 +18,11 @@ struct TrendingView: View {
var body: some View { var body: some View {
Section { Section {
VStack(alignment: .leading, spacing: 2) { VStack(alignment: .center, spacing: 2) {
HStack(alignment: .top) { HStack {
Spacer()
categoryButton categoryButton
countryFlag countryFlag
countryButton countryButton
Spacer()
} }
.scaleEffect(0.85) .scaleEffect(0.85)