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,14 +197,17 @@ struct PlayerSettings: View {
} }
private var collapsedLineDescriptionStepper: some View { private var collapsedLineDescriptionStepper: some View {
Stepper(value: $collapsedLinesDescription, in: 0 ... 10) { LazyVStack {
Text("Description preview") Stepper(value: $collapsedLinesDescription, in: 0 ... 10) {
if collapsedLinesDescription == 0 { Text("Description preview")
Text("No preview") #if os(macOS)
} else if collapsedLinesDescription == 1 { Spacer()
Text("\(collapsedLinesDescription) line") #endif
} else { if collapsedLinesDescription == 0 {
Text("\(collapsedLinesDescription) lines") Text("No preview")
} else {
Text("\(collapsedLinesDescription) lines")
}
} }
} }
} }