- views/pages.templ: upload input now has "multiple" attribute; page
title/heading updated to plural ("Bücher hochladen"); templ regenerated
- internal/web/handlers.go: uploadSubmit now reads all files from
r.MultipartForm.File["book"] instead of a single r.FormFile, saving
each via a new saveUpload helper; partial failures are reported per
filename while successfully saved files are kept
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- static/styles.css: use CSS grid instead of inline-block for .book-list
so rows align consistently regardless of card content height; add
overflow-wrap/word-break to titles/authors
- views/pages.templ: truncate long titles/authors server-side
(truncateTitle helper) instead of relying on CSS line-clamp, which
behaved inconsistently across browsers (esp. Firefox with flex);
full title kept in title attribute and on the book detail page
- views/pages_templ.go regenerated via templ generate
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- library.New now creates BOOKS_DIR (MkdirAll) on startup so uploads
don't fail when the directory is missing on a fresh bind mount
- uploadSubmit logs the underlying OS error on save/write failures
- README: document docker-compose deployment, container UID/GID (100/101)
for bind-mounted ./data permissions, and running the admin CLI via
docker compose exec
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Ermöglicht die Verwendung von .btn auf <button>-Elementen
(nicht nur <a>-Links) mit einheitlicher Ausrichtung, Schrift
und Cursor.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>