fix(web,api): UI fiche livre et lecteur — progression, locators EPUB/PDF, styles

- web: BookPage/ReaderPage enrichis, sauvegarde de progression lecteur
- web: locators EPUB/PDF normalisés (+ tests), EpubReader/PdfReader ajustés
- web: nginx et service worker ajustés
- api: progress — corrections contrôleur/service

Refs: #13
This commit is contained in:
Git Agent
2026-08-23 10:32:44 +02:00
parent e94524f119
commit 85b56ef3b2
12 changed files with 254 additions and 54 deletions

View File

@ -150,9 +150,10 @@ h2 {
.book-card {
display: grid;
grid-template-columns: 96px minmax(0, 1fr);
grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
gap: 14px;
min-height: 220px;
min-width: 0;
padding: 14px;
border: 1px solid var(--line);
border-radius: var(--radius);
@ -163,7 +164,10 @@ h2 {
.book-portrait {
display: grid;
place-items: center;
min-height: 156px;
width: 100%;
min-width: 0;
aspect-ratio: 2 / 3;
min-height: 0;
border: 1px solid rgba(213, 168, 77, 0.35);
border-radius: 6px;
background:
@ -182,6 +186,13 @@ h2 {
.book-card h3 {
margin-bottom: 5px;
line-height: 1.1;
overflow-wrap: anywhere;
}
.book-card-body {
display: grid;
align-content: start;
min-width: 0;
}
.book-card p,
@ -211,6 +222,19 @@ h2 {
justify-content: space-between;
}
.book-card-actions {
flex-wrap: wrap;
justify-content: flex-start;
}
.book-card-actions .ghost-button,
.book-card-actions .primary-button {
flex: 1 1 86px;
min-width: 0;
padding-inline: 10px;
white-space: nowrap;
}
.format-pill {
padding: 4px 7px;
border-radius: 999px;
@ -440,6 +464,11 @@ input {
}
.reader-fallback {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px;
color: var(--ink-muted);
}
@ -511,7 +540,11 @@ input {
}
.book-card {
grid-template-columns: 86px minmax(0, 1fr);
grid-template-columns: minmax(72px, 82px) minmax(0, 1fr);
}
.book-card-actions .ghost-button {
display: none;
}
.library-table > div,