fix: adapt for mobile

This commit is contained in:
hh
2026-06-13 14:40:24 +02:00
parent 6ed392617f
commit dcf95bd9d4
2 changed files with 63 additions and 1 deletions
@@ -1,4 +1,5 @@
<script lang="ts">
import { goto } from "$app/navigation";
import {
enqueueBackfill,
getCurrentPresence,
@@ -123,6 +124,17 @@
</script>
<header class="chat-header">
<div class="back">
<Button
variant="translucent"
round
smaller
onclick={() => goto("/app")}
aria-label="Назад"
>
<Icon name="arrow-left" />
</Button>
</div>
<ContextMenu>
{#snippet children({ props })}
<button
@@ -207,6 +219,15 @@
background-color: var(--color-background);
}
.back {
display: none;
margin-left: -0.25rem;
@media (max-width: 600px) {
display: block;
}
}
.peek {
display: flex;
flex: 1;