From 150eb2a2afc58676aeb07d1bca6e93a717624718 Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 5 Apr 2026 23:11:49 +0500 Subject: [PATCH] fix(book): move description to full-width section below header The description was crammed into the narrow right column beside the cover, creating a wall of text on mobile. Now it renders full-width below the cover+title row with better line-height, 5-line collapse, gradient fade, and a chevron-annotated show-more button. Co-Authored-By: Claude Sonnet 4.6 --- ui/src/routes/books/[slug]/+page.svelte | 44 ++++++++++++++++--------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/ui/src/routes/books/[slug]/+page.svelte b/ui/src/routes/books/[slug]/+page.svelte index a157431..f29c407 100644 --- a/ui/src/routes/books/[slug]/+page.svelte +++ b/ui/src/routes/books/[slug]/+page.svelte @@ -633,22 +633,6 @@ {/if} - - {#if book.summary} -
-

- {book.summary} -

- {#if book.summary.length > 220} - - {/if} -
- {/if} + +{#if book.summary} +
+
+

+ {book.summary} +

+ {#if !summaryExpanded && book.summary.length > 300} + +
+ {/if} +
+ {#if book.summary.length > 300} + + {/if} +
+{/if} + {#if data.inLib && chapterList.length > 0}