From 9a7f702859ebd44f13a578c575ce05b101332045 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Sun, 5 Oct 2025 10:13:00 +0545 Subject: [PATCH] Remove background color and state persistence. --- VoiceInk/Views/TranscriptionCard.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/VoiceInk/Views/TranscriptionCard.swift b/VoiceInk/Views/TranscriptionCard.swift index a03f779..e9612b2 100644 --- a/VoiceInk/Views/TranscriptionCard.swift +++ b/VoiceInk/Views/TranscriptionCard.swift @@ -153,7 +153,7 @@ struct TranscriptionCard: View { } if isExpanded { - HStack(spacing: 2) { + HStack(spacing: 4) { ForEach(availableTabs, id: \.self) { tab in TabButton( title: tab.rawValue, @@ -185,7 +185,6 @@ struct TranscriptionCard: View { .padding(.vertical, 8) } .frame(maxHeight: 300) - .background(Color(.controlBackgroundColor).opacity(0.5)) .cornerRadius(8) if hasAudioFile, let urlString = transcription.audioFileURL, @@ -248,19 +247,24 @@ struct TranscriptionCard: View { Label("Copy Enhanced", systemImage: "doc.on.doc") } } - + Button { let _ = ClipboardManager.copyToClipboard(transcription.text) } label: { Label("Copy Original", systemImage: "doc.on.doc") } - + Button(role: .destructive) { onDelete() } label: { Label("Delete", systemImage: "trash") } } + .onChange(of: isExpanded) { oldValue, newValue in + if newValue { + selectedTab = .original + } + } } private var hasMetadata: Bool {