Improve timestamp display format
This commit is contained in:
parent
047e7b8245
commit
7c4e510b84
@ -21,7 +21,7 @@ struct TranscriptionCard: View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
// Header with date and duration
|
||||
HStack {
|
||||
Text(transcription.timestamp, style: .date)
|
||||
Text(transcription.timestamp, format: .dateTime.month(.abbreviated).day().year().hour().minute())
|
||||
.font(.system(size: 14, weight: .medium, design: .default))
|
||||
.foregroundColor(.secondary)
|
||||
Spacer()
|
||||
@ -85,17 +85,6 @@ struct TranscriptionCard: View {
|
||||
.padding(.vertical, 8)
|
||||
AudioPlayerView(url: url)
|
||||
}
|
||||
|
||||
// Timestamp (only when expanded)
|
||||
if isExpanded {
|
||||
HStack {
|
||||
Text(transcription.timestamp, style: .time)
|
||||
.font(.system(size: 14, weight: .regular, design: .default))
|
||||
.foregroundColor(.secondary)
|
||||
Spacer()
|
||||
}
|
||||
.padding(.top, 4)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(16)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user