terminal slow
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user