From f1ff969090dc376f90837139b5280af04c1166ec Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 1 Jun 2024 12:46:31 +0800 Subject: [PATCH] fix: change list in grid mode looks and works weird (#157) --- src/Resources/Locales/en_US.axaml | 6 +++--- src/Resources/Locales/zh_CN.axaml | 6 +++--- src/Views/ChangeCollectionView.axaml | 7 ++----- src/Views/ChangeCollectionView.axaml.cs | 6 +----- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index aeaa1633..edf3fe1a 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -52,9 +52,9 @@ Bytes CANCEL CHANGE DISPLAY MODE - Show as Grid - Show as List - Show as Tree + Show as File and Dir List + Show as Path List + Show as Filesystem Tree Checkout Branch Checkout Commit Warning: By doing a commit checkout, your Head will be detached diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index c65eda03..015cb6cc 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -55,9 +55,9 @@ 字节 取 消 切换变更显示模式 - 网格模式 - 列表模式 - 树形模式 + 文件名+路径列表模式 + 全路径列表模式 + 文件目录树形结构模式 检出(checkout)分支 检出(checkout)提交 注意:执行该操作后,当前HEAD会变为游离(detached)状态! diff --git a/src/Views/ChangeCollectionView.axaml b/src/Views/ChangeCollectionView.axaml index b09d76d2..87c729e7 100644 --- a/src/Views/ChangeCollectionView.axaml +++ b/src/Views/ChangeCollectionView.axaml @@ -31,16 +31,13 @@ - + + - - - - diff --git a/src/Views/ChangeCollectionView.axaml.cs b/src/Views/ChangeCollectionView.axaml.cs index 81ce514c..5c42b07c 100644 --- a/src/Views/ChangeCollectionView.axaml.cs +++ b/src/Views/ChangeCollectionView.axaml.cs @@ -155,11 +155,7 @@ namespace SourceGit.Views { var source = new FlatTreeDataGridSource(changes) { - Columns = - { - new TemplateColumn(null, "GridModeFileTemplate", null, GridLength.Auto), - new TemplateColumn(null, "GridModeDirTemplate", null, GridLength.Auto) - }, + Columns = { new TemplateColumn(null, "GridModeTemplate", null, GridLength.Auto) }, }; var selection = new Models.TreeDataGridSelectionModel(source, null);