diff options
| author | Kit La Touche <kit@transneptune.net> | 2025-01-01 18:09:46 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2025-01-01 18:09:46 -0500 |
| commit | c9b3394e9fc2cf6eb505ab03a6479eae996ed6e9 (patch) | |
| tree | c536430d2fb2e4093fb3b09cbda04369b68a6911 /ui/routes | |
| parent | 628337f3afcd5125299cbf620832779ab209022b (diff) | |
Just oh so many styles
Diffstat (limited to 'ui/routes')
| -rw-r--r-- | ui/routes/(app)/+layout.svelte | 54 | ||||
| -rw-r--r-- | ui/routes/(app)/ch/[channel]/+page.svelte | 20 |
2 files changed, 6 insertions, 68 deletions
diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte index 8a70c4b..cacfc2d 100644 --- a/ui/routes/(app)/+layout.svelte +++ b/ui/routes/(app)/+layout.svelte @@ -126,63 +126,19 @@ {#if loading} <h2>Loading…</h2> {:else} - <div id="interface" class="p-2"> + <div id="interface"> <nav id="sidebar" data-expanded={pageContext.showMenu}> - <div class="channel-list"> <ChannelList active={channel} channels={enrichedChannels} /> + <!-- + <div class="channel-list"> </div> + --> <div class="create-channel"> <CreateChannelForm /> </div> </nav> - <main class="pl-4"> + <main> {@render children?.()} </main> </div> {/if} - -<style> - #interface { - margin: unset; - display: grid; - grid-template: - 'side main' 1fr - / auto 1fr; - height: calc(100vh - var(--app-bar-height)); - - @media (width > 640px) { - --overlay: static; - --translate: 0; - } - } - nav { - grid-area: side; - background-color: rgb(var(--color-surface-800)); - inset: auto auto 0 0; - padding: 0.25rem; - position: var(--overlay, absolute); - transition: translate 300ms ease-out; - width: var(--nav-width); - height: 100vh; - @media (width > 640px) { - height: calc(100vh - var(--app-bar-height) - var(--interface-padding)); - } - z-index: 10; - border-top-right-radius: 1.4rem; - border-bottom-right-radius: 1.4rem; - } - main { - grid-area: main; - height: calc(100vh - var(--app-bar-height) - var(--interface-padding)); - } - .channel-list { - height: calc(100vh - var(--input-row-height)); - @media (width > 640px) { - height: calc(100vh - var(--app-bar-height) - var(--input-row-height) - var(--interface-padding)); - } - overflow: auto; - } - nav[data-expanded='false'] { - translate: var(--translate, -100% 0); - } -</style> diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte index d4e04fe..8eba709 100644 --- a/ui/routes/(app)/ch/[channel]/+page.svelte +++ b/ui/routes/(app)/ch/[channel]/+page.svelte @@ -67,24 +67,6 @@ <div class="active-channel" on:scroll={handleScroll} bind:this={activeChannel}> <ActiveChannel {messageRuns} /> </div> -<div class="create-message max-h-full"> +<div class="create-message"> <MessageInput {channel} /> </div> - -<style> - .active-channel { - height: calc( - 100vh - var(--app-bar-height) - var(--interface-padding) - var(--input-row-height) - ); - overflow: auto; - } - .create-message { - position: fixed; - bottom: 0.5rem; - width: calc(100% - var(--nav-width) - 2rem); - @media (width <= 640px) { - width: 100%; - left: 0; - } - } -</style> |
