mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-23 21:16:22 +00:00
Fix filtered / hidden view for status
This commit is contained in:
parent
d6820cf429
commit
c40ca6eb4d
1 changed files with 4 additions and 1 deletions
|
@ -25,8 +25,10 @@ public struct StatusRowView: View {
|
||||||
switch filter.filter.filterAction {
|
switch filter.filter.filterAction {
|
||||||
case .warn:
|
case .warn:
|
||||||
makeFilterView(filter: filter.filter)
|
makeFilterView(filter: filter.filter)
|
||||||
|
.listRowBackground(viewModel.highlightRowColor)
|
||||||
case .hide:
|
case .hide:
|
||||||
EmptyView()
|
EmptyView()
|
||||||
|
.listRowSeparator(.hidden)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
|
@ -79,7 +81,7 @@ public struct StatusRowView: View {
|
||||||
.contextMenu {
|
.contextMenu {
|
||||||
contextMenu
|
contextMenu
|
||||||
}
|
}
|
||||||
.listRowBackground(viewModel.highlightRowColor)
|
|
||||||
.swipeActions(edge: .trailing) {
|
.swipeActions(edge: .trailing) {
|
||||||
if !viewModel.isCompact {
|
if !viewModel.isCompact {
|
||||||
trailingSwipeActions
|
trailingSwipeActions
|
||||||
|
@ -90,6 +92,7 @@ public struct StatusRowView: View {
|
||||||
leadingSwipeActions
|
leadingSwipeActions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.listRowBackground(viewModel.highlightRowColor)
|
||||||
.listRowInsets(.init(top: 12,
|
.listRowInsets(.init(top: 12,
|
||||||
leading: .layoutPadding,
|
leading: .layoutPadding,
|
||||||
bottom: 12,
|
bottom: 12,
|
||||||
|
|
Loading…
Reference in a new issue