From 9430825290ba345201546e35578891468da87265 Mon Sep 17 00:00:00 2001
From: Kit La Touche <kit@transneptune.net>
Date: Fri, 4 Oct 2024 14:10:32 -0400
Subject: Add some Flowbite

For the styling.
---
 hi-ui/src/lib/MessageInput.svelte | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'hi-ui/src/lib/MessageInput.svelte')

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>
-- 
cgit v1.2.3

