From 2fc0cbb852558f7434e764e64b8defa121e9455d Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 10 Jan 2021 20:25:32 +0000 Subject: [PATCH] Show all images in their full glory --- public/style.css | 8 ++++++-- src/View/Status.elm | 7 +------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/public/style.css b/public/style.css index 3e2355e..479e015 100644 --- a/public/style.css +++ b/public/style.css @@ -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 */ diff --git a/src/View/Status.elm b/src/View/Status.elm index 8365a4d..6e3845c 100644 --- a/src/View/Status.elm +++ b/src/View/Status.elm @@ -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