From cbdf295d67f6d431769a89c240b35807076491b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Fri, 24 Nov 2023 14:09:40 +0100 Subject: [PATCH] fix macOS layout --- Shared/Settings/PlayerSettings.swift | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Shared/Settings/PlayerSettings.swift b/Shared/Settings/PlayerSettings.swift index e25b77aa..fc1056fe 100644 --- a/Shared/Settings/PlayerSettings.swift +++ b/Shared/Settings/PlayerSettings.swift @@ -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") + } } } }