mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 18:39:33 +00:00
Hide field stats component if there is nothing to show
This commit is contained in:
parent
31cb8284a5
commit
dec6148df6
@ -152,7 +152,10 @@ view2 classes stats =
|
||||
}
|
||||
]
|
||||
, div [ class "flex-grow" ]
|
||||
[ table [ class "w-full text-sm" ]
|
||||
[ table
|
||||
[ class "w-full text-sm"
|
||||
, classList [ ( "hidden", List.isEmpty fields ) ]
|
||||
]
|
||||
[ thead []
|
||||
[ tr [ class "" ]
|
||||
[ th [ class "py-2 text-left" ] []
|
||||
|
Loading…
x
Reference in New Issue
Block a user