From 1083ddd71616913cac2eec662daa06d36d967722 Mon Sep 17 00:00:00 2001 From: pagyp <34237608+pagyP@users.noreply.github.com> Date: Mon, 26 Jan 2026 13:08:54 +0000 Subject: [PATCH 1/3] moves edit and delete buttons under cover image --- templates/index.html | 49 ++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/templates/index.html b/templates/index.html index b76e887..5578aeb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -130,15 +130,22 @@ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); } - /* Desktop layout: cover on left, content on right */ + /* Desktop layout: left column (cover + actions), right column (content) */ @media (min-width: 768px) { .book-card { flex-direction: row; gap: 15px; } - .book-card-cover { + .book-card-left { flex-shrink: 0; + width: 120px; + display: flex; + flex-direction: column; + gap: 10px; + } + + .book-card-cover { width: 120px; height: 180px; margin-bottom: 0; @@ -169,6 +176,15 @@ display: flex; flex-direction: column; } + + .book-actions { + flex-direction: column; + } + + .book-actions a { + flex: initial; + width: 100%; + } } /* Mobile layout: cover centered at top, content below */ @@ -233,7 +249,7 @@ } .book-actions { - margin-top: 15px; + margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; @@ -367,15 +383,22 @@