From 4100095cdfa60bfca3e6362e04b8dadfb52873fa Mon Sep 17 00:00:00 2001 From: John Xina Date: Thu, 27 Jul 2023 10:16:33 +0800 Subject: [PATCH] =?UTF-8?q?Add=20picture=20zoom=20in=20feature=20(Leah=20R?= =?UTF-8?q?owe's=20Sleepless=20Rants=20=E2=80=93=201337box,=20an=20insanel?= =?UTF-8?q?y=20optimized=20CSS-only,=20no-JS=20lightbox=20implementation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 11 ++++++++--- static/css/1337box_shadow.css | 5 +++++ templates/thread.html | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 static/css/1337box_shadow.css diff --git a/app.py b/app.py index 31b6bf7..d1a624a 100644 --- a/app.py +++ b/app.py @@ -109,10 +109,15 @@ async def _jinja2_filter_translate(frags, reply_id=0): for subfrag in subfrags: htmlfmt += str(escape(subfrag)) + '
' elif isinstance(frag, FragImage_p): + # htmlfmt += \ + # f'' \ + # f'' + + # Leah Rowe's lightbox implementation htmlfmt += \ - f'' \ - f'' + f'' \ + f'' elif isinstance(frag, FragEmoji_p): htmlfmt = append_with_leading_clean(htmlfmt, f'[{ frag.desc }] +