From 8b2037f6fa7840881dd689c13719dc9e1fe8b1e3 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 25 Aug 2026 12:59:54 -0400 Subject: [PATCH] [webpages] Fix narrow mobile view leaving half the page blank --- PROJECT.org | 6 +++++- vrobbler/templates/webpages/webpage_detail.html | 13 +++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/PROJECT.org b/PROJECT.org index 66a2c9e..e478f0a 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -18,7 +18,7 @@ tasks, Todoist tasks, web pages I've read and trails I've hiked has turned out to be sometimes cathartic and sometimes functional as I try to remember when I did a thing. -* Backlog [0/30] :vrobbler:project:personal: +* Backlog [1/31] :vrobbler:project:personal: ** TODO [#C] Configure IMAP folder/start in user profile :imap:settings: *** Description @@ -591,3 +591,7 @@ The Edit log form should have from top to bottom: - Expansion ids (which should a multi-select widget of expansions for this game) - Location (which should be a drop down of BoardGameLocations for this user) +** DONE [#B] Fix bug in webpage display where narrow mobile view is half white space :bug:ui:templates:webpages: +:PROPERTIES: +:ID: f8a54113-298f-4e2e-9184-d812fee3a442 +:END: diff --git a/vrobbler/templates/webpages/webpage_detail.html b/vrobbler/templates/webpages/webpage_detail.html index 01fc85b..549cf42 100644 --- a/vrobbler/templates/webpages/webpage_detail.html +++ b/vrobbler/templates/webpages/webpage_detail.html @@ -20,6 +20,12 @@ max-width: none; position: absolute; } + @media (max-width: 767.98px) { + .webpage-notes .sticky-note { + position: static; + max-width: 200px; + } + } {% endblock %} @@ -48,6 +54,9 @@ }); function positionNotes() { + if (!window.matchMedia('(min-width: 768px)').matches) { + return; + } var articleText = article.innerText || article.textContent; var articleHeight = article.offsetHeight; @@ -213,13 +222,13 @@ {% endif %} {% if object.extract %} -
+
{{object.extract|linebreaks}}
{% endif %} -
+
{% if latest_scrobble_notes %}
Notes