summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorKit La Touche <kit@transneptune.net>2024-11-11 22:57:35 -0500
committerKit La Touche <kit@transneptune.net>2024-11-11 22:57:35 -0500
commita547bf3506b822d5ff4c1f1c6c4a15c63dd2d90e (patch)
treefff7b3f78212cf819bd02394eb60d84f9efb136f /ui
parentf9e3b7211910338ec485170f4d18325398bc1d7a (diff)
Style sidebar and message input
Diffstat (limited to 'ui')
-rw-r--r--ui/routes/(app)/+layout.svelte17
-rw-r--r--ui/routes/(app)/ch/[channel]/+page.svelte9
2 files changed, 21 insertions, 5 deletions
diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 7e2c0e0..5ed3906 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -94,6 +94,7 @@
--app-bar-height: 68px;
--input-row-height: 2rem;
--interface-padding: 16px;
+ --nav-width: 21rem;
}
#interface {
@@ -116,18 +117,24 @@
padding: 0.25rem;
position: var(--overlay, absolute);
transition: translate 300ms ease-out;
- width: 21rem;
- height: calc(100vh - var(--app-bar-height) - var(--interface-padding));
+ 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(--app-bar-height) - var(--interface-padding) - var(--input-row-height)
- );
+ 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'] {
diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte
index 0961665..6348e5c 100644
--- a/ui/routes/(app)/ch/[channel]/+page.svelte
+++ b/ui/routes/(app)/ch/[channel]/+page.svelte
@@ -22,4 +22,13 @@
);
overflow: auto;
}
+ .create-message {
+ position: fixed;
+ bottom: 0.5rem;
+ width: calc(100% - var(--nav-width) - 2rem);
+ @media (width <= 640px) {
+ width: 100%;
+ left: 0;
+ }
+ }
</style>