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

Merge pull request #147 from altic-dev/render-longer-transcription

ALTIC12be880347b5
diff --cc Sources/Fluid/Views/BottomOverlayView.swift
index 8c9e547b,53a79ac4..fff1a684
--- a/Sources/Fluid/Views/BottomOverlayView.swift
+++ b/Sources/Fluid/Views/BottomOverlayView.swift
@@@ -384,23 -403,48 +410,50 @@@ struct BottomOverlayView: View
var body: some View {
VStack(spacing: self.layout.vPadding / 2) {
- // Transcription text area (single line)
+ // Transcription text area (wrapped)
Group {
if self.hasTranscription && !self.contentState.isProcessing {
- Text(self.transcriptionSuffix)
- .font(.system(size: self.layout.transFontSize, weight: .medium))
- .foregroundStyle(.white.opacity(0.9))
- .lineLimit(1)
- .truncationMode(.head)
+ let previewText = self.transcriptionPreviewText
+ if !previewText.isEmpty {
+ ScrollViewReader { proxy in
+ ScrollView(.vertical, showsIndicators: false) {
+ Text(previewText)
+ .font(.system(size: self.layout.transFontSize, weight: .medium))
+ .foregroundStyle(.white.opacity(0.9))
+ .multilineTextAlignment(.leading)
+ .lineLimit(nil)
+ .fixedSize(horizontal: false, vertical: true)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ Color.clear.frame(height: 1).id("bottom")
+ }
+ .frame(width: self.previewMaxWidth)
+ .frame(maxHeight: self.previewMaxHeight)
+ .clipped()
+ .onAppear {
+ DispatchQueue.main.async {
+ proxy.scrollTo("bottom", anchor: .bottom)
+ }
+ }
+ .onChange(of: previewText) { _, _ in
+ DispatchQueue.main.async {
+ proxy.scrollTo("bottom", anchor: .bottom)
+ }
+ }
+ }
+ .padding(.vertical, self.transcriptionVerticalPadding)
+ }
} else if self.contentState.isProcessing {
- Text(self.processingLabel)
- .font(.system(size: self.layout.transFontSize, weight: .medium))
- .foregroundStyle(self.modeColor.opacity(0.8))
+ ShimmerText(
+ text: self.processingStatusText,
+ color: self.modeColor,
+ font: .system(size: self.layout.transFontSize, weight: .medium)
+ )
}
}
- .frame(maxWidth: self.layout.waveformWidth * 2.2, minHeight: self.hasTranscription || self.contentState.isProcessing ? self.layout.transFontSize * 1.5 : 0)
+ .frame(
+ maxWidth: self.previewMaxWidth,
+ minHeight: self.hasTranscription || self.contentState.isProcessing ? self.layout.transFontSize * 1.5 : 0
+ )
// Dictation prompt selector (only in dictation mode)
if self.isDictationMode && !self.contentState.isProcessing {