From 9831102d9621a3f97dfdbb204d34832494838256 Mon Sep 17 00:00:00 2001 From: codeEvolveZenith345 Date: Sat, 8 Nov 2025 06:09:12 +0000 Subject: [PATCH] Fix search result truncation to improve scannability - Truncate search result previews to 3 lines maximum - Improves user ability to scan and find relevant results quickly - Prevents display of entire page content (e.g., 900 words) in search results Signed-off-by: codeEvolveZenith345 --- docs/stylesheets/extra.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index a6c6ce440e..50759088d5 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -671,4 +671,26 @@ a.md-header__button.md-logo img { .pipe { display: none; } +} + +.md-search-result__article { + max-height: none; +} + +.md-search-result__teaser, +article.md-search-result__article p:not(.md-search-result__meta) { + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + line-height: 1.5; + max-height: 4.5em; +} + +.md-search-result__article > p { + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; } \ No newline at end of file