diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-10-04 14:10:32 -0400 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-10-04 14:10:32 -0400 |
| commit | 9430825290ba345201546e35578891468da87265 (patch) | |
| tree | 0a705b985210fef75a566ba18df8ade9c3f78985 /hi-ui/src/lib | |
| parent | d50b1b56c011c03c7d8a95242af404b727e91a80 (diff) | |
Add some Flowbite
For the styling.
Diffstat (limited to 'hi-ui/src/lib')
| -rw-r--r-- | hi-ui/src/lib/MessageInput.svelte | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hi-ui/src/lib/MessageInput.svelte b/hi-ui/src/lib/MessageInput.svelte index 938e467..6cd732a 100644 --- a/hi-ui/src/lib/MessageInput.svelte +++ b/hi-ui/src/lib/MessageInput.svelte @@ -1,4 +1,7 @@ <script> + import { Input, InputAddon, ButtonGroup, Button } from 'flowbite-svelte'; + import { CaretRightSolid } from 'flowbite-svelte-icons'; + import { tick } from 'svelte'; import { postToChannel } from '../apiServer'; import { activeChannel } from '../store'; @@ -19,13 +22,10 @@ </script> <form on:submit|preventDefault={handleSubmit}> - <input type="text" class="border rounded px-3" bind:this={self} bind:value={input} disabled={disabled}> - <button type="submit">➤</button> + <ButtonGroup class="w-full"> + <Input disabled={disabled} bind:this={self} bind:value={input} /> + <Button color="primary" class="!p-2.5" type="submit"> + <CaretRightSolid class="w-5 h-5" /> + </Button> + </ButtonGroup> </form> - -<style> - input[type="text"] { - /* TODO: percentage won't handle zoom in/out well. */ - width: 96%; - } -</style> |
