Skip to content

Commit ff7e5cf

Browse files
authored
Merge pull request #2088 from appwrite/assistant-improvements
2 parents da6629a + f5ffa1c commit ff7e5cf

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

src/lib/commandCenter/panels/ai.svelte

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,12 @@
148148
})}
149149
clearOnCallback={false}
150150
on:keydown={(e) => {
151-
if (e.detail.key !== 'Escape') {
151+
const showingExamples = !$isLoading && !answer;
152+
if (e.detail.key === 'Enter' && $input.trim()) {
153+
e.detail.cancel();
154+
return;
155+
}
156+
if (e.detail.key !== 'Escape' && !showingExamples) {
152157
e.detail.cancel();
153158
}
154159
}}
@@ -302,15 +307,27 @@
302307
}
303308
}
304309
305-
:global(.answer ul),
306-
:global(.answer ol) {
310+
:global(.answer ul) {
311+
padding-inline-start: 1rem;
312+
list-style-type: disc;
313+
display: grid;
307314
gap: 1rem;
315+
}
316+
317+
:global(.answer ol) {
318+
padding-inline-start: 1.1rem;
319+
list-style-type: decimal;
308320
display: grid;
321+
gap: 1rem;
309322
}
310323
311324
:global(.answer a) {
312325
text-decoration: underline;
313326
}
327+
328+
:global(.answer a:hover) {
329+
opacity: 0.8;
330+
}
314331
}
315332
316333
.experimental {

0 commit comments

Comments
 (0)