Underline the current server chip; insist on ask_human for choices

This commit is contained in:
Ian Gulliver
2026-10-19 16:59:00 -07:00
parent 01cabc0e43
commit b9a988e2d5
4 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -519,7 +519,7 @@ private struct ServerChip: View {
.stroke(servers.color(origin))
.frame(width: 8, height: 8)
Text(serverName(origin))
.fontWeight(current || questions > 0 ? .bold : .regular)
.fontWeight(current ? .bold : .regular)
if questions > 0 {
Badge(count: questions)
.help("open questions")
@@ -541,6 +541,12 @@ private struct ServerChip: View {
.padding(.horizontal, 8)
.padding(.vertical, 3)
.background(questions > 0 ? Palette.warnTint : current ? Palette.surface : .clear, in: RoundedRectangle(cornerRadius: 6))
.overlay(alignment: .bottom) {
Rectangle()
.fill(current ? servers.color(origin) : .clear)
.frame(height: 2)
.padding(.horizontal, 8)
}
.contentShape(Rectangle())
}
.buttonStyle(.plain)