File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
src/lib/commandCenter/panels Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 148
148
})}
149
149
clearOnCallback ={false }
150
150
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 ) {
152
157
e .detail .cancel ();
153
158
}
154
159
}}
302
307
}
303
308
}
304
309
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 ;
307
314
gap : 1rem ;
315
+ }
316
+
317
+ :global(.answer ol ) {
318
+ padding-inline-start : 1.1rem ;
319
+ list-style-type : decimal ;
308
320
display : grid ;
321
+ gap : 1rem ;
309
322
}
310
323
311
324
:global(.answer a ) {
312
325
text-decoration : underline ;
313
326
}
327
+
328
+ :global(.answer a :hover ) {
329
+ opacity : 0.8 ;
330
+ }
314
331
}
315
332
316
333
.experimental {
You can’t perform that action at this time.
0 commit comments