Show meta-data as image title

This commit is contained in:
Alexander Kobjolke 2023-12-12 10:50:07 +01:00
parent a4501d5cb5
commit 5f80082567
2 changed files with 4 additions and 0 deletions

View file

@ -92,6 +92,7 @@ viewThumbnail : String -> Photo -> Html Message
viewThumbnail selectedUrl thumb =
img
[ src (urlPrefix ++ thumb.url)
, title (thumb.title ++ " [" ++ String.fromInt thumb.size ++ " KB]")
, classList [ ( "selected", selectedUrl == thumb.url ) ]
, onClick (ClickedThumbnail thumb.url)
]