From 7b2d114b2444dc4bc66df22675d6dc02b7a8a238 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Tue, 8 Jul 2025 01:06:09 -0400
Subject: Move container divs for components into those components.

The styles for the `MessageInput` and `CreateConversationForm` components assume that the container div will be present, and the components will not render as intended without them. Therefore: they are "part of" the component in most of the ways that matter, not part of the context in which the component is used. Moving the divs into the component will make it easier to reuse these components (for example, in swatches).

The diff for this looks worse than it is because of indentation changes.
---
 ui/lib/components/CreateConversationForm.svelte | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'ui/lib/components/CreateConversationForm.svelte')

diff --git a/ui/lib/components/CreateConversationForm.svelte b/ui/lib/components/CreateConversationForm.svelte
index e390a78..d6056d3 100644
--- a/ui/lib/components/CreateConversationForm.svelte
+++ b/ui/lib/components/CreateConversationForm.svelte
@@ -16,7 +16,9 @@
   }
 </script>
 
-<form {onsubmit}>
-  <input type="text" placeholder="start a conversation" bind:value={name} {disabled} />
-  <button type="submit">&#x2795;</button>
-</form>
+<div class="create-conversation">
+  <form {onsubmit}>
+    <input type="text" placeholder="start a conversation" bind:value={name} {disabled} />
+    <button type="submit">&#x2795;</button>
+  </form>
+</div>
-- 
cgit v1.2.3

