From 57e0356c8e3cceeecd4a99a281d77ddf5e3ebe7d Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 19 Nov 2022 15:09:09 +0100 Subject: [PATCH] Minor recent documents fixes --- Model/DocumentsModel.swift | 3 +-- Shared/Videos/VideoBanner.swift | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Model/DocumentsModel.swift b/Model/DocumentsModel.swift index 1f3938a0..a27fbafc 100644 --- a/Model/DocumentsModel.swift +++ b/Model/DocumentsModel.swift @@ -85,8 +85,7 @@ final class DocumentsModel: ObservableObject { var creationDateFormatter: DateFormatter { let formatter = DateFormatter() - formatter.dateStyle = .short - formatter.timeStyle = .short + formatter.setLocalizedDateFormatFromTemplate("YYMMddHHmm") return formatter } diff --git a/Shared/Videos/VideoBanner.swift b/Shared/Videos/VideoBanner.swift index 2a6b7bd8..7b9e90e9 100644 --- a/Shared/Videos/VideoBanner.swift +++ b/Shared/Videos/VideoBanner.swift @@ -67,7 +67,10 @@ struct VideoBanner: View { Text("•") Text(size) } + + Spacer() } + .frame(maxWidth: .infinity) } #endif }