Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

Adjust width

grohith3272b72b2f4f01f
diff --git a/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift b/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift
index 433f4e17..e6f731fc 100644
--- a/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift
+++ b/Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift
@@ -691,12 +691,13 @@ extension AIEnhancementSettingsView {
Text("Mode")
.font(.caption)
.foregroundStyle(.secondary)
- Picker("Mode", selection: self.$viewModel.draftPromptMode) {
+ Picker("", selection: self.$viewModel.draftPromptMode) {
ForEach(SettingsStore.PromptMode.visiblePromptModes) { mode in
Text(self.friendlyModeName(mode)).tag(mode)
}
}
.pickerStyle(.segmented)
+ .labelsHidden()
.disabled(mode.isDefault)
}
diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swift
index 1af3a32c..4b805f31 100644
--- a/Sources/Fluid/Views/BottomOverlayView.swift
+++ b/Sources/Fluid/Views/BottomOverlayView.swift
@@ -1773,10 +1773,34 @@ struct BottomOverlayView: View {
return "Default"
}
+ private var promptSelectorDisplayLabel: String {
+ let label = self.selectedPromptLabel.trimmingCharacters(in: .whitespacesAndNewlines)
+ guard !label.isEmpty else { return "Default" }
+
+ let maxLength: Int
+ if self.isCompactControls {
+ maxLength = self.isAppPromptOverrideActive ? 6 : 11
+ } else {
+ maxLength = self.isAppPromptOverrideActive ? 11 : 16
+ }
+
+ guard label.count > maxLength else { return label }
+ let prefixLength = max(maxLength - 3, 1)
+ return "\(label.prefix(prefixLength))..."
+ }
+
private var promptSelectorFontSize: CGFloat {
max(self.layout.modeFontSize - 1, 9)
}
+ private var promptSelectorLabelFontSize: CGFloat {
+ max(self.promptSelectorFontSize - 1, 8)
+ }
+
+ private var promptSelectorChipWidth: CGFloat {
+ self.isCompactControls ? 100 : 164
+ }
+
private var promptSelectorVerticalPadding: CGFloat {
4
}
@@ -2005,10 +2029,12 @@ struct BottomOverlayView: View {
.lineLimit(1)
.fixedSize(horizontal: true, vertical: false)
}
- Text(self.selectedPromptLabel)
- .font(.system(size: self.promptSelectorFontSize, weight: .semibold))
+ Text(self.promptSelectorDisplayLabel)
+ .font(.system(size: self.promptSelectorLabelFontSize, weight: .semibold))
.foregroundStyle(.white.opacity(0.75))
.lineLimit(1)
+ .truncationMode(.tail)
+ .frame(maxWidth: .infinity, alignment: .leading)
if self.isAppPromptOverrideActive {
Text("App")
.font(.system(size: max(self.promptSelectorFontSize - 2, 8), weight: .semibold))
@@ -2024,7 +2050,7 @@ struct BottomOverlayView: View {
.font(.system(size: max(self.promptSelectorFontSize - 1, 8), weight: .semibold))
.foregroundStyle(.white.opacity(0.45))
}
- .fixedSize(horizontal: true, vertical: false)
+ .frame(width: self.promptSelectorChipWidth, alignment: .leading)
.padding(.horizontal, 8)
.padding(.vertical, self.promptSelectorVerticalPadding)
.background(