From 891e3cb17425c2c345a062b508d039990bf8b4bb Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Wed, 11 Nov 2026 15:01:36 +0100 Subject: [PATCH] Put Q&A voting controls below the question on phones Co-Authored-By: Claude Opus 5.5 --- webroot/css/plenario.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webroot/css/plenario.css b/webroot/css/plenario.css index 51ceb22..a472e8f 100644 --- a/webroot/css/plenario.css +++ b/webroot/css/plenario.css @@ -551,6 +551,12 @@ textarea { resize: vertical; } .qa-stepper { flex: none; display: inline-flex; align-items: center; gap: 6px; } .qa-stepper__count { min-width: 3.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); } .qa-stepper.is-active .qa-stepper__count { color: var(--qa); } +/* Phones: voting controls below the question, so the text keeps the full width. */ +@media (max-width: 700px) { + .qa-item:has(.qa-stepper) { flex-wrap: wrap; row-gap: 8px; } + .qa-item:has(.qa-stepper) .qa-item__text { flex-basis: 100%; } + .qa-item:has(.qa-stepper) .qa-stepper { margin-left: auto; } +} .qa-upvote { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--qa); background: var(--surface); color: var(--qa); font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; } .qa-upvote--up { background: var(--qa); color: var(--surface); } .qa-upvote:disabled { opacity: .45; cursor: not-allowed; } -- 2.54.1