mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +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:
1 parent
3aab14ca85
commit
a5c41864b3
1 file changed
+3
-3
@@ -192,14 +192,14 @@ struct BarMenuView: View {
|
|||||||
Text("usage & accounts").font(.caption2).foregroundStyle(.secondary)
|
Text("usage & accounts").font(.caption2).foregroundStyle(.secondary)
|
||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
|
if viewModel.isRefreshing {
|
||||||
|
ProgressView().controlSize(.small)
|
||||||
|
}
|
||||||
if let v = BarVersionDisplay.string() {
|
if let v = BarVersionDisplay.string() {
|
||||||
Text(v)
|
Text(v)
|
||||||
.font(.caption2)
|
.font(.caption2)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
}
|
}
|
||||||
if viewModel.isRefreshing {
|
|
||||||
ProgressView().controlSize(.small)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 14)
|
.padding(.horizontal, 14)
|
||||||
.padding(.vertical, 10)
|
.padding(.vertical, 10)
|
||||||
|
|||||||
Reference in new issue
Block a user