mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
ux: re-design commit detail information page to avoid commit message hidden in scoll view
This commit is contained in:
parent
50fe25a631
commit
c170f261db
7 changed files with 64 additions and 73 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Avalonia.Data.Converters;
|
||||
|
||||
|
@ -11,5 +12,11 @@ namespace SourceGit.Converters
|
|||
|
||||
public static readonly FuncValueConverter<IList, bool> IsNotNullOrEmpty =
|
||||
new FuncValueConverter<IList, bool>(v => v != null && v.Count > 0);
|
||||
|
||||
public static readonly FuncValueConverter<List<Models.Change>, List<Models.Change>> Top100Changes =
|
||||
new FuncValueConverter<List<Models.Change>, List<Models.Change>>(v => (v == null || v.Count < 100) ? v : v.GetRange(0, 100));
|
||||
|
||||
public static readonly FuncValueConverter<IList, bool> IsOnlyTop100Shows =
|
||||
new FuncValueConverter<IList, bool>(v => v != null && v.Count > 100);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue