mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
fix macOS layout
This commit is contained in:
parent
5d78946320
commit
cbdf295d67
@ -197,14 +197,17 @@ struct PlayerSettings: View {
|
||||
}
|
||||
|
||||
private var collapsedLineDescriptionStepper: some View {
|
||||
Stepper(value: $collapsedLinesDescription, in: 0 ... 10) {
|
||||
Text("Description preview")
|
||||
if collapsedLinesDescription == 0 {
|
||||
Text("No preview")
|
||||
} else if collapsedLinesDescription == 1 {
|
||||
Text("\(collapsedLinesDescription) line")
|
||||
} else {
|
||||
Text("\(collapsedLinesDescription) lines")
|
||||
LazyVStack {
|
||||
Stepper(value: $collapsedLinesDescription, in: 0 ... 10) {
|
||||
Text("Description preview")
|
||||
#if os(macOS)
|
||||
Spacer()
|
||||
#endif
|
||||
if collapsedLinesDescription == 0 {
|
||||
Text("No preview")
|
||||
} else {
|
||||
Text("\(collapsedLinesDescription) lines")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user