fix(bar): keep header version label rightmost during refresh

The refresh spinner rendered after the version label, pushing the
version away from the header edge while a refresh was in progress. The
spinner now sits between the Spacer and the version label.
This commit is contained in:
Tam Nhu Tran
2026-06-10 15:33:06 -04:00
parent 3aab14ca85
commit a5c41864b3
@@ -192,14 +192,14 @@ struct BarMenuView: View {
Text("usage & accounts").font(.caption2).foregroundStyle(.secondary)
}
Spacer()
if viewModel.isRefreshing {
ProgressView().controlSize(.small)
}
if let v = BarVersionDisplay.string() {
Text(v)
.font(.caption2)
.foregroundStyle(.secondary)
}
if viewModel.isRefreshing {
ProgressView().controlSize(.small)
}
}
.padding(.horizontal, 14)
.padding(.vertical, 10)