From 4d96dfb9ac093710dc937ed1d31b7f91e1308ec7 Mon Sep 17 00:00:00 2001 From: Erik Thiele Date: Mon, 20 Jul 2026 14:56:42 +0200 Subject: [PATCH] Use full page width with a responsive link grid The layout was capped at 1200px and listed links in a single column. Drop the cap and lay the cards out in a grid: three per row on wide screens, two from 1000px, one below that. To make the narrower cards work, shorten the edit action to an icon button so the title and URL keep their room, and let the edit form's field and button rows wrap. Also fixes pre-existing horizontal overflow on phone widths by stacking the sidebar above the content and letting the add-link form wrap. Grid tracks use minmax(0, 1fr) so cards can shrink below their content's intrinsic width instead of pushing the page wider. Co-Authored-By: Claude Sonnet 5 --- app/templates/_link_card.html | 8 +++++--- app/templates/_link_card_edit.html | 8 ++++---- app/templates/base.html | 15 ++++++++++++++- app/templates/index.html | 5 +++-- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/app/templates/_link_card.html b/app/templates/_link_card.html index cb0829c..73ba02c 100644 --- a/app/templates/_link_card.html +++ b/app/templates/_link_card.html @@ -10,12 +10,14 @@ 🕓 hinzugefügt am {{ link.created_at | datum }} -
- + hx-swap="outerHTML">✎
-
-
+
+
-
+
@@ -34,7 +34,7 @@
-
+