From 48719ee0dd808460d4b944c2030d4e5703c60c9f Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 30 Nov 2023 13:16:48 -0800 Subject: [PATCH] Render newline separation in chat references to improve readability --- src/interface/desktop/chat.html | 1 + src/interface/obsidian/styles.css | 1 + src/khoj/interface/web/chat.html | 1 + 3 files changed, 3 insertions(+) diff --git a/src/interface/desktop/chat.html b/src/interface/desktop/chat.html index 36fc48d0..8c3fc49d 100644 --- a/src/interface/desktop/chat.html +++ b/src/interface/desktop/chat.html @@ -945,6 +945,7 @@ } button.reference-button.expanded { max-height: none; + white-space: pre-wrap; } button.reference-button::before { diff --git a/src/interface/obsidian/styles.css b/src/interface/obsidian/styles.css index 01b514f1..6a29e722 100644 --- a/src/interface/obsidian/styles.css +++ b/src/interface/obsidian/styles.css @@ -169,6 +169,7 @@ button.reference-button { button.reference-button.expanded { height: auto; max-height: none; + white-space: pre-wrap; } button.reference-button::before { content: "▶"; diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html index dc643bd5..a55d8e29 100644 --- a/src/khoj/interface/web/chat.html +++ b/src/khoj/interface/web/chat.html @@ -775,6 +775,7 @@ To get started, just start typing below. You can also type / to see a list of co } button.reference-button.expanded { max-height: none; + white-space: pre-wrap; } button.reference-button::before {