1
0
mirror of https://github.com/yattee/yattee.git synced 2025-04-28 16:00:33 +05:30

fix macOS layout

This commit is contained in:
Toni Förster 2023-11-24 14:09:40 +01:00
parent 5d78946320
commit cbdf295d67
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -197,17 +197,20 @@ struct PlayerSettings: View {
} }
private var collapsedLineDescriptionStepper: some View { private var collapsedLineDescriptionStepper: some View {
LazyVStack {
Stepper(value: $collapsedLinesDescription, in: 0 ... 10) { Stepper(value: $collapsedLinesDescription, in: 0 ... 10) {
Text("Description preview") Text("Description preview")
#if os(macOS)
Spacer()
#endif
if collapsedLinesDescription == 0 { if collapsedLinesDescription == 0 {
Text("No preview") Text("No preview")
} else if collapsedLinesDescription == 1 {
Text("\(collapsedLinesDescription) line")
} else { } else {
Text("\(collapsedLinesDescription) lines") Text("\(collapsedLinesDescription) lines")
} }
} }
} }
}
private var returnYouTubeDislikeToggle: some View { private var returnYouTubeDislikeToggle: some View {
Toggle("Enable Return YouTube Dislike", isOn: $enableReturnYouTubeDislike) Toggle("Enable Return YouTube Dislike", isOn: $enableReturnYouTubeDislike)