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 <noreply@anthropic.com>
This commit is contained in:
@@ -10,12 +10,14 @@
|
||||
🕓 hinzugefügt am {{ link.created_at | datum }}
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex; gap:4px; flex-shrink:0;">
|
||||
<button class="ghost" style="padding:4px 10px; font-size:.8rem;"
|
||||
<div style="display:flex; gap:4px; flex-shrink:0; align-items:flex-start;">
|
||||
<button class="ghost" style="padding:4px 9px; font-size:.85rem;"
|
||||
title="Bearbeiten"
|
||||
hx-get="/links/{{ link.id }}/edit"
|
||||
hx-target="#link-{{ link.id }}"
|
||||
hx-swap="outerHTML">✎ Bearbeiten</button>
|
||||
hx-swap="outerHTML">✎</button>
|
||||
<button class="danger"
|
||||
title="Löschen"
|
||||
hx-delete="/links/{{ link.id }}"
|
||||
hx-target="#link-{{ link.id }}"
|
||||
hx-swap="outerHTML"
|
||||
|
||||
Reference in New Issue
Block a user