diff options
| author | Adrien D. <dtrckd@gmail.com> | 2024-07-25 16:25:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 22:25:47 +0800 |
| commit | 54e78583991918c05e724ed70c2c4be4a15bc849 (patch) | |
| tree | 55e207d141a7907a3a4048e8f077c551d355efdd /assets | |
| parent | 5dc84a84c345ace94f18cb8e57e949506c7da787 (diff) | |
| download | aichat-54e78583991918c05e724ed70c2c4be4a15bc849.tar.gz | |
feat: webui add autofocus to chat-input in textarea (#742)
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/arena.html | 4 | ||||
| -rw-r--r-- | assets/playground.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/assets/arena.html b/assets/arena.html index 39bd59c..90cc6af 100644 --- a/assets/arena.html +++ b/assets/arena.html @@ -495,7 +495,7 @@ <div class="input-panel"> <div class="input-panel-inner"> <textarea id="chat-input" x-model="input" x-ref="input" @keydown.enter="handleEnterKeydown" - placeholder="Ask Anything"></textarea> + placeholder="Ask Anything" autofocus></textarea> <div class="input-image-bar" x-show="images.length > 0"> <template x-for="(image, index) in images"> <div class="input-image-item"> @@ -1042,4 +1042,4 @@ </script> </body> -</html>
\ No newline at end of file +</html> diff --git a/assets/playground.html b/assets/playground.html index c800742..011d632 100644 --- a/assets/playground.html +++ b/assets/playground.html @@ -640,7 +640,7 @@ <div class="input-panel"> <div class="input-panel-inner"> <textarea id="chat-input" x-model="input" x-ref="input" @keydown.enter="handleEnterKeydown" - placeholder="Ask Anything"></textarea> + placeholder="Ask Anything" autofocus></textarea> <div class="input-image-bar" x-show="images.length > 0"> <template x-for="(image, index) in images"> <div class="input-image-item"> @@ -1256,4 +1256,4 @@ </script> </body> -</html>
\ No newline at end of file +</html> |
