From 038d029022e1722683b556a4e13ec1143248f23a Mon Sep 17 00:00:00 2001 From: sh95014 <95387068+sh95014@users.noreply.github.com> Date: Sat, 16 Dec 2023 22:33:55 -0800 Subject: [PATCH] group slider and text of "max reply indentation" setting (#1749) --- .../App/Tabs/Settings/DisplaySettingsView.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift b/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift index 8cf849c5..5bb6bc39 100644 --- a/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift +++ b/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift @@ -207,13 +207,15 @@ struct DisplaySettingsView: View { Toggle("settings.display.pending-left", isOn: $userPreferences.pendingShownLeft) Toggle("settings.display.show-reply-indentation", isOn: $userPreferences.showReplyIndentation) if userPreferences.showReplyIndentation { - Slider(value: .init(get: { - Double(userPreferences.maxReplyIndentation) - }, set: { newVal in - userPreferences.maxReplyIndentation = UInt(newVal) - }), in: 1...20, step: 1) - Text("settings.display.max-reply-indentation-\(String(userPreferences.maxReplyIndentation))") - .font(.scaledBody) + VStack { + Slider(value: .init(get: { + Double(userPreferences.maxReplyIndentation) + }, set: { newVal in + userPreferences.maxReplyIndentation = UInt(newVal) + }), in: 1...20, step: 1) + Text("settings.display.max-reply-indentation-\(String(userPreferences.maxReplyIndentation))") + .font(.scaledBody) + } } } .listRowBackground(theme.primaryBackgroundColor)