From 8bc9e89bb3152f2419b66259b430ac545627085f Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Sun, 17 Mar 2024 00:38:53 +0530 Subject: [PATCH] (fixed): projects search result description taking more than one line --- htdocs/assets/js/floatingbar-config.js | 4 ++-- htdocs/assets/style.css | 28 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/htdocs/assets/js/floatingbar-config.js b/htdocs/assets/js/floatingbar-config.js index 39cf1bf..9be2475 100644 --- a/htdocs/assets/js/floatingbar-config.js +++ b/htdocs/assets/js/floatingbar-config.js @@ -182,8 +182,8 @@ function inject_search_results (results, keyword) {

${result.name.charAt(0).toUpperCase()}

-
${result.name}
-

${result.description.slice(0, 35) + '...'}

+
${result.name}
+

${result.description}

diff --git a/htdocs/assets/style.css b/htdocs/assets/style.css index a2017d2..ff3abe1 100644 --- a/htdocs/assets/style.css +++ b/htdocs/assets/style.css @@ -1143,6 +1143,22 @@ video { width: 100vw; } +.max-w-full { + max-width: 100%; +} + +.max-w-\[70vw\] { + max-width: 70vw; +} + +.max-w-\[50vw\] { + max-width: 50vw; +} + +.max-w-\[45vw\] { + max-width: 45vw; +} + .origin-left { transform-origin: left; } @@ -1249,6 +1265,10 @@ video { scroll-behavior: smooth; } +.text-ellipsis { + text-overflow: ellipsis; +} + .whitespace-nowrap { white-space: nowrap; } @@ -2000,6 +2020,14 @@ video { width: 50vw; } + .md\:max-w-\[35vw\] { + max-width: 35vw; + } + + .md\:max-w-\[30vw\] { + max-width: 30vw; + } + .md\:flex-row { flex-direction: row; }