diff --git a/public/css/style.css b/public/css/style.css index f3fe074c..072ba947 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1264,6 +1264,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; @@ -1712,10 +1725,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 diff --git a/resources/views/newslist.blade.php b/resources/views/newslist.blade.php index 800497e5..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')
{!!Formatter::excerpt($item->content, 150)!!}
- Lees verder... -