From 9d9917eea5be3c1eb36a4cac3b2cf707dce011d8 Mon Sep 17 00:00:00 2001 From: Eric Bus Date: Tue, 24 Nov 2026 12:25:25 +0100 Subject: [PATCH 1/2] Tag/region/theme pages: all articles as compact rows, like /nieuws The first 6 articles used card markup from the old Pressroom theme (column_1_2, auto_height, read_more) whose styles no longer exist, so they showed a tiny image and an unstyled 'Lees verder'. All articles now use the same compact rows (partial/newslist_small) and row height as /nieuws. Co-Authored-By: Claude Opus 5.5 --- resources/views/newslist.blade.php | 60 ++---------------------------- 1 file changed, 4 insertions(+), 56 deletions(-) diff --git a/resources/views/newslist.blade.php b/resources/views/newslist.blade.php index 1632fe90..ee3b0114 100644 --- a/resources/views/newslist.blade.php +++ b/resources/views/newslist.blade.php @@ -10,7 +10,8 @@ news_post post_container @endsection @section('page_container_class') - grey_background + {{-- 'news': same list rows as on /nieuws --}} + grey_background news @endsection @section('site_container_class') grey_background @@ -30,62 +31,9 @@ @section('content')
- {{-- Nieuws komt met 15 berichten per pagina. Deel op in 3 x 2-breed + 3 x 3-breed --}} - @foreach(array_slice($news, 0, 6) as $item) - @if($loop->index % 2 == 0) -
- @endif -
- -
- @if($loop->index % 2 == 1) -
- @endif - @endforeach - + {{-- All articles as compact rows, the same as on /nieuws and the homepage lists --}}
- @include('partial/newslist_small', ['id' => 'items-more-news', 'news' => array_slice($news, 6, count($news))]) + @include('partial/newslist_small', ['id' => 'items-more-news', 'news' => $news])
@if(count($news) >= 15) From 7032f46e7961aee3d4fb8641d1ea02c3519252f6 Mon Sep 17 00:00:00 2001 From: Eric Bus Date: Tue, 24 Nov 2026 14:05:14 +0100 Subject: [PATCH 2/2] News list rows: image next to the text, height follows content - Image column exactly as wide as the image, 12px gap to the title (was a third of the row: 28-152px of empty space depending on the list) - Long titles stay inside the list on desktop - /nieuws and tag pages: rows follow their content (fixed 115px removed), like the homepage and sidebar lists Co-Authored-By: Claude Opus 5.5 --- public/css/style.css | 17 +++++++++++++---- resources/assets/sass/components/_blog.scss | 18 ++++++++++++++++++ resources/assets/sass/layout/_news.scss | 7 ++----- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 77df52bf..c21b326f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1205,6 +1205,19 @@ div.pp_default .pp_close:hover { } .blog .post > .row { align-items: flex-start; + flex-wrap: nowrap; +} +.blog .post > .row > .col-4 { + flex: 0 0 auto; + width: auto; + padding-right: 0; +} +.blog .post > .row > .col-8 { + flex: 1 1 auto; + width: auto; + min-width: 0; + padding-left: 12px; + padding-right: calc(var(--bs-gutter-x) * 0.5); } .blog .post img { display: block; @@ -1653,10 +1666,6 @@ h2.box_header span { font-weight: 500; } -.news .blog .post { - height: 115px; -} - .bread_crumb { height: 38px; margin: 0; diff --git a/resources/assets/sass/components/_blog.scss b/resources/assets/sass/components/_blog.scss index 6fb4969a..270053fa 100644 --- a/resources/assets/sass/components/_blog.scss +++ b/resources/assets/sass/components/_blog.scss @@ -10,6 +10,24 @@ // hoogte volgt de inhoud (titel + datum), zodat er geen lege ruimte onder korte berichten ontstaat > .row { align-items: flex-start; + flex-wrap: nowrap; + + // Image column exactly as wide as the image, the text right next to it + // (was a third of the row, which left a large gap on wide lists) + > .col-4 { + flex: 0 0 auto; + width: auto; + padding-right: 0; + } + + > .col-8 { + flex: 1 1 auto; + width: auto; + min-width: 0; + padding-left: 12px; + // Cancels the row's negative margin, so long titles stay inside the list + padding-right: calc(var(--bs-gutter-x) * 0.5); + } } img { diff --git a/resources/assets/sass/layout/_news.scss b/resources/assets/sass/layout/_news.scss index 966331e8..686f5f36 100644 --- a/resources/assets/sass/layout/_news.scss +++ b/resources/assets/sass/layout/_news.scss @@ -1,7 +1,4 @@ @use "../components/news_post"; -.news { - .blog .post { - height: 115px; - } -} +// News list rows (/nieuws and tag pages) follow their content, like the other +// lists; they used to have a fixed height of 115px