fix: Hide sidebar on login/signup
This commit is contained in:
parent
3df7c2d179
commit
e799c55adb
9
src/routes/(main)/+layout.svelte
Normal file
9
src/routes/(main)/+layout.svelte
Normal 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>
|
@ -84,7 +84,8 @@
|
||||
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
|
||||
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>
|
||||
</form>
|
||||
</div>
|
@ -1,12 +1,8 @@
|
||||
<script lang="ts">
|
||||
import MainLayout from '$lib/components/mainLayout.svelte';
|
||||
import { ModeWatcher } from 'mode-watcher';
|
||||
import '../app.css';
|
||||
import type { LayoutProps } from './$types';
|
||||
let { data, children }: LayoutProps = $props();
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<ModeWatcher />
|
||||
<MainLayout {data}>
|
||||
{@render children()}
|
||||
</MainLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user