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/routes/(app)/+layout.svelte | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'ui/routes/(app)/+layout.svelte')

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 658d966..1210b43 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -121,9 +121,7 @@
 <div id="interface">
   <nav id="sidebar" data-expanded={pageContext.showMenu}>
     <ConversationList active={conversationId} {conversations} />
-    <div class="create-conversation">
-      <CreateConversationForm {createConversation} />
-    </div>
+    <CreateConversationForm {createConversation} />
   </nav>
   <main>
     {@render children?.()}
-- 
cgit v1.2.3

