fix: Hide sidebar on login/signup

This commit is contained in:
April Hall 2025-02-09 21:33:05 -05:00
parent 3df7c2d179
commit e799c55adb
Signed by: arithefirst
GPG Key ID: 4508A15C4DB91C5B
8 changed files with 13 additions and 7 deletions

View File

@ -0,0 +1,9 @@
<script lang="ts">
import MainLayout from '$lib/components/mainLayout.svelte';
import type { LayoutProps } from './$types';
let { data, children }: LayoutProps = $props();
</script>
<MainLayout {data}>
{@render children()}
</MainLayout>

View File

@ -84,7 +84,8 @@
use:autoResize use:autoResize
class="flex h-10 min-h-10 w-full resize-none rounded-md border border-input bg-transparent px-3 py-2 text-sm class="flex h-10 min-h-10 w-full resize-none rounded-md border border-input bg-transparent px-3 py-2 text-sm
shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1
focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"></textarea> focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
></textarea>
<Button class="h-full min-h-10 w-14" type="submit"><Send class="size-full" /></Button> <Button class="h-full min-h-10 w-14" type="submit"><Send class="size-full" /></Button>
</form> </form>
</div> </div>

View File

@ -1,12 +1,8 @@
<script lang="ts"> <script lang="ts">
import MainLayout from '$lib/components/mainLayout.svelte';
import { ModeWatcher } from 'mode-watcher'; import { ModeWatcher } from 'mode-watcher';
import '../app.css'; import '../app.css';
import type { LayoutProps } from './$types'; let { children } = $props();
let { data, children }: LayoutProps = $props();
</script> </script>
<ModeWatcher /> <ModeWatcher />
<MainLayout {data}>
{@render children()} {@render children()}
</MainLayout>