fix news-item row

This commit is contained in:
2026-01-09 18:13:20 +03:00
parent ed3d788b6d
commit ace05946db
4 changed files with 22 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
.news-item {
flex: 1 1 calc(33.333% - 1rem);
max-width: calc(33.333% - 1rem); /* добавьте эту строку */
min-width: 250px;
display: flex;
flex-direction: column;
@@ -68,10 +69,15 @@ body.image-portrait .post-thumbnail img {
color: #909294;
}
.news-item-info-part a:hover {
color: #666;
}
/* Планшет - 2 карточки */
@media (max-width: 1024px) {
.news-item {
flex: 1 1 calc(50% - 1rem);
max-width: calc(50% - 1rem); /* добавьте эту строку */
}
body.image-portrait .post-thumbnail {