terminal slow

This commit is contained in:
Ian Gulliver
2026-10-17 23:21:40 -07:00
parent 39ca42316f
commit 28c4549151
5 changed files with 14 additions and 26 deletions
+3 -11
View File
@@ -741,10 +741,6 @@ struct DetailsBox<Summary: View, Content: View>: View {
Text(open ? "▾" : "▸")
.foregroundStyle(Palette.muted)
summary
if working {
Spinner(color: accent)
.padding(.leading, 4)
}
Spacer(minLength: 0)
if let status {
Text(status.text)
@@ -1160,11 +1156,7 @@ private struct SnapshotRow: View {
.overlay(alignment: .topTrailing) {
if let review {
switch review.state {
case .running:
Spinner(color: accent).font(Fonts.font(10)).help("review in progress")
.fixedSize()
.offset(x: 13, y: -4)
case .failed:
case .running, .failed:
EmptyView()
case .skipped:
Text("●").font(Fonts.font(11, weight: 700)).foregroundStyle(Palette.muted).help("skipped: no changes")
@@ -1190,7 +1182,7 @@ private struct SnapshotRow: View {
}
}
}
.buttonStyle(SmallLinkButtonStyle(color: n > 0 ? Palette.warn : Palette.accent))
.help("Show the review of snapshot \(snap.n) in the Reviews tab")
.buttonStyle(SmallLinkButtonStyle(color: n > 0 ? Palette.warn : Palette.accent, border: review?.state == .running ? accent : Palette.border))
.help(review?.state == .running ? "Review in progress; show snapshot \(snap.n)'s review in the Reviews tab" : "Show the review of snapshot \(snap.n) in the Reviews tab")
}
}