From a68c07da53daae526e074c4f3d4e8d1a0a17c5c6 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 28 Sep 2026 02:46:44 +0000 Subject: [PATCH] =?UTF-8?q?contact=20messages:=20enlarge=20the=20trigger?= =?UTF-8?q?=20button's=20=E2=9C=89=EF=B8=8F=20(1.38em=20span)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/pagerite.css | 5 +++++ pagerite/views.py | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/assets/pagerite.css b/frontend/src/assets/pagerite.css index ad1acd1..3b295f2 100644 --- a/frontend/src/assets/pagerite.css +++ b/frontend/src/assets/pagerite.css @@ -923,6 +923,11 @@ article { cursor: pointer; } +.contact-trigger .icon { + /* Match the corner ✉️'s optical size against the button text. */ + font-size: 1.38em; +} + .contact-trigger:hover { color: var(--tab-hover, var(--bg)); text-shadow: 0 0 0.1em; diff --git a/pagerite/views.py b/pagerite/views.py index f5c2194..f286941 100644 --- a/pagerite/views.py +++ b/pagerite/views.py @@ -993,7 +993,11 @@ def _contact_tag(args: str, _env: dict) -> str: lazy-loads the panel bundle; in the editor preview it stays inert.""" return str( E.button( - f"✉️ {args.strip() or 'Contact us'}", type="button", class_="contact-trigger" + E.span("✉️", class_="icon"), + " ", + args.strip() or "Contact us", + type="button", + class_="contact-trigger", ) )