mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 12:16:59 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user