style(ui): polish islands and remove terminal traffic-light dots

This commit is contained in:
Mika Kuns
2026-04-21 15:56:07 +02:00
parent e6b37624a1
commit 0406d35b61
12 changed files with 330 additions and 151 deletions

View File

@@ -41,6 +41,7 @@ public sealed partial class DiffModalViewModel : ViewModelBase
private readonly GitService _git;
public required string WorktreePath { get; init; }
public string? BaseRef { get; init; }
public ObservableCollection<DiffFileViewModel> Files { get; } = new();
@@ -62,7 +63,12 @@ public sealed partial class DiffModalViewModel : ViewModelBase
Files.Clear();
string raw;
try { raw = await _git.GetDiffAsync(WorktreePath, ct); }
try
{
raw = BaseRef is not null
? await _git.GetBranchDiffAsync(WorktreePath, BaseRef, ct)
: await _git.GetDiffAsync(WorktreePath, ct);
}
catch { return; }
if (string.IsNullOrWhiteSpace(raw)) return;