Improve indentation level design for indentations level > 1 (#1695)

This commit is contained in:
Hugo Saynac 2023-11-29 09:02:01 +01:00 committed by GitHub
parent 94670762a4
commit 69d5f265fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,11 +34,12 @@ public struct StatusRowView: View {
HStack(spacing: 0) {
if !isCompact {
HStack(spacing: 3) {
ForEach(0..<indentationLevel, id: \.self) {_ in
ForEach(0..<indentationLevel, id: \.self) { level in
Rectangle()
.fill(theme.tintColor)
.frame(width: 2)
.accessibilityHidden(true)
.opacity((indentationLevel == level + 1) ? 1 : 0.15)
}
}
if indentationLevel > 0 {