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 {