From f81e5f593bfcd0100f61285245255e9f66b6a3b5 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 28 Sep 2026 02:48:24 +0000 Subject: [PATCH] contact messages: center trigger icon and label (inline-flex) --- frontend/src/assets/pagerite.css | 3 +++ pagerite/views.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/assets/pagerite.css b/frontend/src/assets/pagerite.css index 3b295f2..3f46c58 100644 --- a/frontend/src/assets/pagerite.css +++ b/frontend/src/assets/pagerite.css @@ -909,6 +909,9 @@ article { the color stays bright). */ .contact-trigger { position: relative; + display: inline-flex; + align-items: center; + gap: 0.35em; margin: 0.3em 0.1em; padding: 0.35em 1.1em; /* Same font and weight as the navbar, size/leading as the article text. */ diff --git a/pagerite/views.py b/pagerite/views.py index f286941..f3dd843 100644 --- a/pagerite/views.py +++ b/pagerite/views.py @@ -994,7 +994,6 @@ def _contact_tag(args: str, _env: dict) -> str: return str( E.button( E.span("✉️", class_="icon"), - " ", args.strip() or "Contact us", type="button", class_="contact-trigger",