fix: resolve type mismatch between thinMaterial and clear in ternary
All checks were successful
Security Checks / secret-scanning (push) Successful in 4s
Security Checks / dockerfile-lint (push) Successful in 4s
Security Checks / dependency-audit (push) Successful in 13s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 16:30:40 -05:00
parent 05a8257bd1
commit 0309e6faba

View File

@@ -136,7 +136,11 @@ struct AssistantSheetView: View {
.foregroundStyle(selectedMode == index ? Color.textPrimary : Color.textTertiary)
.padding(.horizontal, 16)
.padding(.vertical, 8)
.background(selectedMode == index ? .thinMaterial : .clear)
.background {
if selectedMode == index {
Capsule().fill(.thinMaterial)
}
}
.clipShape(Capsule())
}
}