fix: rendering of lists in assistant

This commit is contained in:
Chirag Aggarwal committed 2025-07-07 17:07:13 +05:30
1 parent 468473a7f5
commit f5ffa1cb61
1 file changed
+21 -4
+21 -4
View File
@@ -148,7 +148,12 @@
})}
clearOnCallback={false}
on:keydown={(e) => {
if (e.detail.key !== 'Escape') {
const showingExamples = !$isLoading && !answer;
if (e.detail.key === 'Enter' && $input.trim()) {
e.detail.cancel();
return;
}
if (e.detail.key !== 'Escape' && !showingExamples) {
e.detail.cancel();
}
}}
@@ -302,15 +307,27 @@
}
}
:global(.answer ul),
:global(.answer ol) {
gap: 1rem;
:global(.answer ul) {
padding-inline-start: 1rem;
list-style-type: disc;
display: grid;
gap: 1rem;
}
:global(.answer ol) {
padding-inline-start: 1.1rem;
list-style-type: decimal;
display: grid;
gap: 1rem;
}
:global(.answer a) {
text-decoration: underline;
}
:global(.answer a:hover) {
opacity: 0.8;
}
}
.experimental {