1
0
Fork 0

Show all images in their full glory

This commit is contained in:
Ryan Fox 2021-01-10 20:25:32 +00:00
parent cda948b815
commit 2fc0cbb852
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
2 changed files with 7 additions and 8 deletions

View File

@ -396,10 +396,14 @@ form.search {
.attachment-image {
display: block;
width: 100%;
height: 10vh;
height: 100%;
text-decoration: none;
cursor: zoom-in;
border-radius: 2px;
}
.attachment-image img {
border-radius: 6px;
width: 100%;
}
/* Spoiler */

View File

@ -41,13 +41,8 @@ attachmentPreview context sensitive attachments ({ url, preview_url } as attachm
, href url
, onClickWithPreventAndStop <|
ViewerEvent (OpenViewer attachments attachment)
, style
[ ( "background"
, "url(" ++ preview_url ++ ") center center / cover no-repeat"
)
]
]
[]
[ img [ src preview_url ] [] ]
in
li [ class "attachment-entry" ] <|
if nsfw then