Disable indentation in compact post

This commit is contained in:
Thomas Ricouard 2023-11-18 10:44:27 +01:00
parent 11388757f3
commit c1c7c666cb
2 changed files with 13 additions and 11 deletions

View file

@ -50,8 +50,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/RevenueCat/purchases-ios.git", "location" : "https://github.com/RevenueCat/purchases-ios.git",
"state" : { "state" : {
"revision" : "dcb1bc08be560b626207a5782eca6ed132149409", "revision" : "47d9150b04c5fe6e9b37e3b8bfdfb7be606e0f74",
"version" : "4.30.4" "version" : "4.30.5"
} }
}, },
{ {

View file

@ -32,16 +32,18 @@ public struct StatusRowView: View {
public var body: some View { public var body: some View {
HStack(spacing: 0) { HStack(spacing: 0) {
HStack(spacing: 3) { if !isCompact {
ForEach(0..<indentationLevel, id: \.self) {_ in HStack(spacing: 3) {
Rectangle() ForEach(0..<indentationLevel, id: \.self) {_ in
.fill(theme.tintColor) Rectangle()
.frame(width: 2) .fill(theme.tintColor)
.accessibilityHidden(true) .frame(width: 2)
.accessibilityHidden(true)
}
}
if indentationLevel > 0 {
Spacer(minLength: 8)
} }
}
if indentationLevel > 0 {
Spacer(minLength: 8)
} }
VStack(alignment: .leading) { VStack(alignment: .leading) {
if viewModel.isFiltered, let filter = viewModel.filter { if viewModel.isFiltered, let filter = viewModel.filter {