diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swift index 03574604..2848219f 100644 --- a/Sources/Fluid/UI/SettingsView.swift +++ b/Sources/Fluid/UI/SettingsView.swift @@ -828,9 +828,9 @@ struct SettingsView: View { Text(self.hotkeyMode.description) .font(self.theme.typography.bodySmall) .foregroundStyle(self.settingsSecondaryText) + .fixedSize(horizontal: false, vertical: true) } - - Spacer() + .frame(maxWidth: .infinity, alignment: .leading) Picker("", selection: self.$hotkeyMode) { ForEach(HotkeyActivationMode.allCases) { mode in @@ -864,9 +864,9 @@ struct SettingsView: View { Text(SettingsStore.shared.textInsertionMode.description) .font(self.theme.typography.bodySmall) .foregroundStyle(self.settingsSecondaryText) + .fixedSize(horizontal: false, vertical: true) } - - Spacer() + .frame(maxWidth: .infinity, alignment: .leading) Picker("", selection: Binding( get: { SettingsStore.shared.textInsertionMode }, @@ -964,8 +964,7 @@ struct SettingsView: View { isOn: Binding( get: { SettingsStore.shared.literalDictationFormattingEnabled }, set: { SettingsStore.shared.literalDictationFormattingEnabled = $0 } - ), - allowsDescriptionWrapping: true + ) ) Divider().opacity(0.2) @@ -995,8 +994,7 @@ struct SettingsView: View { isOn: Binding( get: { SettingsStore.shared.skipSilentRecordingsEnabled }, set: { SettingsStore.shared.skipSilentRecordingsEnabled = $0 } - ), - allowsDescriptionWrapping: true + ) ) Divider().opacity(0.2) @@ -1961,8 +1959,7 @@ struct SettingsView: View { private func optionToggleRow( title: String, description: String, - isOn: Binding, - allowsDescriptionWrapping: Bool = false + isOn: Binding ) -> some View { HStack(alignment: .center) { VStack(alignment: .leading, spacing: 2) { @@ -1972,13 +1969,9 @@ struct SettingsView: View { Text(description) .font(self.theme.typography.bodySmall) .foregroundStyle(self.settingsSecondaryText) - .fixedSize(horizontal: false, vertical: allowsDescriptionWrapping) - } - .frame(maxWidth: allowsDescriptionWrapping ? .infinity : nil, alignment: .leading) - - if !allowsDescriptionWrapping { - Spacer() + .fixedSize(horizontal: false, vertical: true) } + .frame(maxWidth: .infinity, alignment: .leading) Toggle("", isOn: isOn) .toggleStyle(.switch)