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