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 <noreply@anthropic.com>
This commit is contained in:
eric.busandClaude Opus 5.5 committed 2026-11-24 14:05:14 +01:00
1 parent 9d9917eea5
commit 7032f46e79
3 files changed
+33 -9

No files matched your search

+18
View File
@@ -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 {
+2 -5
View File
@@ -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