fix(frontend): chat header keeps the name readable on a phone, all its actions are in its menu, menus open below the pointer and stay on screen

This commit is contained in:
hh committed 2026-10-19 06:19:46 +00:00
1 parent c307426f4e
commit d9378056f4
3 files changed
+26 -2

No files matched your search

@@ -185,6 +185,16 @@
<ContextMenuItem icon="recent" onselect={() => ui.openPanel("changes")}
>{t("feed.changes")}</ContextMenuItem
>
<ContextMenuItem icon="stats" onselect={() => ui.openPanel("presence")}
>{t("chat.analytics")}</ContextMenuItem
>
<ContextMenuItem
icon={backfilled ? "check" : "cloud-download"}
onselect={backfill}
>{backfilled
? t("chat.backfill.started")
: t("chat.backfill")}</ContextMenuItem
>
<ContextMenuItem
icon="play-story"
onselect={() => ui.openPanel("stories")}
@@ -209,6 +219,7 @@
</Button>
<Button
aria-label={t("feed.changes")}
class="wide-only"
onclick={() => ui.openPanel("changes")}
round
smaller
@@ -227,6 +238,7 @@
</Button>
<Button
aria-label={backfilled ? t("chat.backfill.started") : t("chat.backfill")}
class="wide-only"
loading={backfilling}
onclick={backfill}
round
@@ -286,6 +298,12 @@
align-items: center;
gap: 0.25rem;
margin-left: auto;
@media (max-width: 600px) {
:global(.wide-only) {
display: none;
}
}
}
.title {
+2 -1
View File
@@ -33,13 +33,14 @@
loading = false,
type = "button",
disabled = false,
class: className,
children,
...rest
}: Props = $props();
</script>
<button
class="Button {variant}"
class={["Button", variant, className]}
{disabled}
{type}
class:disabled
@@ -63,7 +63,12 @@
{/snippet}
</ContextMenu.Trigger>
<ContextMenu.Portal>
<ContextMenu.Content class="bg-menu-content" collisionPadding={8}>
<ContextMenu.Content
align="start"
class="bg-menu-content"
collisionPadding={8}
side="bottom"
>
{@render menu()}
</ContextMenu.Content>
</ContextMenu.Portal>