From 501e7606a00d1c55ce852567b1c28e20a322524a Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 10 Nov 2023 18:29:52 -0800 Subject: [PATCH] Increase reference text on 1st expansion to 3 lines and 140 characters --- src/interface/desktop/chat.html | 2 +- src/khoj/interface/web/chat.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interface/desktop/chat.html b/src/interface/desktop/chat.html index 551f9c08..a089939d 100644 --- a/src/interface/desktop/chat.html +++ b/src/interface/desktop/chat.html @@ -577,7 +577,7 @@ cursor: pointer; transition: background 0.2s ease-in-out; text-align: left; - max-height: 50px; + max-height: 75px; transition: max-height 0.3s ease-in-out; overflow: hidden; } diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html index 7955387e..f15489ec 100644 --- a/src/khoj/interface/web/chat.html +++ b/src/khoj/interface/web/chat.html @@ -43,7 +43,7 @@ To get started, just start typing below. You can also type / to see a list of co let escaped_ref = reference.replaceAll('"', '"'); // Generate HTML for Chat Reference - let short_ref = escaped_ref.slice(0, 100); + let short_ref = escaped_ref.slice(0, 140); short_ref = short_ref.length < escaped_ref.length ? short_ref + "..." : short_ref; let referenceButton = document.createElement('button'); referenceButton.innerHTML = short_ref; @@ -447,7 +447,7 @@ To get started, just start typing below. You can also type / to see a list of co cursor: pointer; transition: background 0.2s ease-in-out; text-align: left; - max-height: 50px; + max-height: 75px; transition: max-height 0.3s ease-in-out; overflow: hidden; }