From 99bad0d7331e0c37bb4d00335901f0c227d5dcfe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Apr 2022 23:34:43 +0100 Subject: [PATCH] Emoji width --- epicyon-follow.css | 18 ++++++++++++++++++ webapp_search.py | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/epicyon-follow.css b/epicyon-follow.css index bcb4a7024..c8eaa8753 100644 --- a/epicyon-follow.css +++ b/epicyon-follow.css @@ -246,6 +246,12 @@ input[type=text] { padding: 10px; margin: 20px 30px; } + figure img.common_emoji { + width: 5%; + } + figcaption { + font-size: var(--font-size); + } } @media screen and (max-width: 1000px) { @@ -293,6 +299,12 @@ input[type=text] { padding: 20px; margin: 30px 40px; } + figure img.common_emoji { + width: 5%; + } + figcaption { + font-size: var(--font-size); + } } @media screen and (max-width: 480px) { @@ -343,4 +355,10 @@ input[type=text] { padding: 20px; margin: 30px 40px; } + figure img.common_emoji { + width: 5%; + } + figcaption { + font-size: var(--font-size); + } } diff --git a/webapp_search.py b/webapp_search.py index b1a72a6e0..ff87847c8 100644 --- a/webapp_search.py +++ b/webapp_search.py @@ -355,7 +355,8 @@ def _html_common_emoji(base_dir: str, no_of_emoji: int) -> str: # NOTE: deliberately no alt text, so that without graphics only # the emoji name shows html_str += \ - '
' + \ '
:' + emoji_name + ':
\n' ctr += 1