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",
"location" : "https://github.com/RevenueCat/purchases-ios.git",
"state" : {
"revision" : "dcb1bc08be560b626207a5782eca6ed132149409",
"version" : "4.30.4"
"revision" : "47d9150b04c5fe6e9b37e3b8bfdfb7be606e0f74",
"version" : "4.30.5"
}
},
{

View file

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