mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user