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 {
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)
}
}
}
}

View File

@ -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)