From 6b302d263ac66b521a743f1e8e1cc82997b54b5d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 14 Jul 2026 04:25:14 +0200 Subject: Add chapter images: thumbnail on the list, headline image on the detail page _chapter.html.erb (the aggregator partial used by the erfas/ chaostreffs overview pages) never rendered an image at all -- editors attaching a hackerspace photo via the asset picker would see zero visible effect on exactly the pages they'd check first. chapter_detail.html.erb (the individual page template) had the same gap. Both fixed by reusing existing infrastructure rather than inventing anything: the overview list gets a small, aspect-preserving :thumb image beside the heading; the detail page gets the app's existing headline_image helper, the same one every other full-page template already uses. --- public/stylesheets/ccc.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'public/stylesheets') diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index fe2144fd..bb4f7e3b 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css @@ -610,3 +610,20 @@ label[for=light-mode] { } } +.chapter_partial_layout { + display: flex; + gap: 12px; + align-items: flex-start; +} + +.chapter_thumbnail img { + width: 64px; + height: 64px; + object-fit: cover; + border-radius: 4px; + display: block; +} + +.chapter_partial_content { + min-width: 0; +} -- cgit v1.3