Merge pull request #2088 from appwrite/assistant-improvements

This commit is contained in:
Darshan authored and GitHub committed 2025-07-08 10:03:11 +05:30
commit ff7e5cf087
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 {