Show all images in their full glory
This commit is contained in:
parent
cda948b815
commit
2fc0cbb852
|
@ -396,10 +396,14 @@ form.search {
|
||||||
.attachment-image {
|
.attachment-image {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 10vh;
|
height: 100%;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: zoom-in;
|
cursor: zoom-in;
|
||||||
border-radius: 2px;
|
}
|
||||||
|
|
||||||
|
.attachment-image img {
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Spoiler */
|
/* Spoiler */
|
||||||
|
|
|
@ -41,13 +41,8 @@ attachmentPreview context sensitive attachments ({ url, preview_url } as attachm
|
||||||
, href url
|
, href url
|
||||||
, onClickWithPreventAndStop <|
|
, onClickWithPreventAndStop <|
|
||||||
ViewerEvent (OpenViewer attachments attachment)
|
ViewerEvent (OpenViewer attachments attachment)
|
||||||
, style
|
|
||||||
[ ( "background"
|
|
||||||
, "url(" ++ preview_url ++ ") center center / cover no-repeat"
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
]
|
[ img [ src preview_url ] [] ]
|
||||||
[]
|
|
||||||
in
|
in
|
||||||
li [ class "attachment-entry" ] <|
|
li [ class "attachment-entry" ] <|
|
||||||
if nsfw then
|
if nsfw then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user