Fixed overflow of titles and descriptions on search results pages
Some checks failed
Run Integration Tests / test (push) Failing after 2m50s

This commit is contained in:
partisan 2025-05-27 22:09:22 +02:00
parent 3407ed5f4b
commit 4867b3b932
8 changed files with 33 additions and 11 deletions

View file

@ -1357,6 +1357,28 @@ p {
font-weight: 400;
}
.single-line-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
}
.clamp-3-lines {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
/* Standard syntax (future support) */
line-clamp: 3;
box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.5; /* adjust if needed */
max-height: calc(1.5em * 3); /* 3 lines */
}
.result-description {
margin: 4px 0 0 0;
color: var(--font-fg);