From 89646ef3f6309058a1db7dd6cffbd4e67316c68d Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Mon, 9 Nov 2020 17:06:44 +0100 Subject: [PATCH] Hide number of pages, if item is only one file with one page --- modules/webapp/src/main/elm/Comp/ItemCard.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/webapp/src/main/elm/Comp/ItemCard.elm b/modules/webapp/src/main/elm/Comp/ItemCard.elm index 7c48245a..21563564 100644 --- a/modules/webapp/src/main/elm/Comp/ItemCard.elm +++ b/modules/webapp/src/main/elm/Comp/ItemCard.elm @@ -180,7 +180,7 @@ view cfg settings model item = div [ classList [ ( "card-attachment-nav", True ) - , ( "invisible", pageCount == 0 ) + , ( "invisible", pageCount == 0 || (item.fileCount == 1 && pageCount == 1) ) ] ] [ if item.fileCount == 1 then