From e17fbab4cf9230f05a72ae05e1cb45a7b8238560 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 11 Oct 2023 11:13:57 +0800 Subject: [PATCH] style: new style for FileHistories --- src/Models/Commit.cs | 2 ++ src/Views/FileHistories.xaml | 69 +++++++++++++++--------------------- 2 files changed, 30 insertions(+), 41 deletions(-) diff --git a/src/Models/Commit.cs b/src/Models/Commit.cs index 5467f3ec..ed60faae 100644 --- a/src/Models/Commit.cs +++ b/src/Models/Commit.cs @@ -27,6 +27,8 @@ namespace SourceGit.Models { public string AuthorTimeStr => UTC_START.AddSeconds(AuthorTime).ToString("yyyy-MM-dd HH:mm:ss"); public string CommitterTimeStr => UTC_START.AddSeconds(CommitterTime).ToString("yyyy-MM-dd HH:mm:ss"); + public string AuthorTimeShortStr => UTC_START.AddSeconds(AuthorTime).ToString("yyyy/MM/dd"); + public string CommitterTimeShortStr => UTC_START.AddSeconds(CommitterTime).ToString("yyyy/MM/dd"); public static void ParseUserAndTime(string data, ref User user, ref ulong time) { var match = REG_USER_FORMAT.Match(data); diff --git a/src/Views/FileHistories.xaml b/src/Views/FileHistories.xaml index f205ee1e..0345f49c 100644 --- a/src/Views/FileHistories.xaml +++ b/src/Views/FileHistories.xaml @@ -60,7 +60,6 @@ - - - - - + + + + + - + + + + + + + - - - - - + - - - - - + + - - - - - - - - - - + + + + + + +