Move card size definition in css and fix height bug

For very tall images (sometimes shopping receipts), the height must be
restricted, too.
This commit is contained in:
Eike Kettner
2020-11-09 21:36:06 +01:00
parent 10305bc82d
commit 976aa75710
3 changed files with 35 additions and 12 deletions

View File

@ -179,7 +179,7 @@ view cfg settings model item =
pageCountLabel =
div
[ classList
[ ( "card-attachment-nav", True )
[ ( "card-attachment-nav top", True )
, ( "invisible", pageCount == 0 || (item.fileCount == 1 && pageCount == 1) )
]
]
@ -227,7 +227,10 @@ view cfg settings model item =
span [ class "invisible" ] []
else
div [ class "image" ]
div
[ class "image ds-card-image"
, Data.UiSettings.cardPreviewSize settings
]
[ img
[ class "preview-image"
, src previewUrl