Hide number of pages, if item is only one file with one page

This commit is contained in:
Eike Kettner 2020-11-09 17:06:44 +01:00
parent 7a14b05ea7
commit 89646ef3f6

View File

@ -180,7 +180,7 @@ view cfg settings model item =
div div
[ classList [ classList
[ ( "card-attachment-nav", True ) [ ( "card-attachment-nav", True )
, ( "invisible", pageCount == 0 ) , ( "invisible", pageCount == 0 || (item.fileCount == 1 && pageCount == 1) )
] ]
] ]
[ if item.fileCount == 1 then [ if item.fileCount == 1 then