fix(app): hide 'open in app' button on narrow viewports

This commit is contained in:
Adam
2026-02-06 07:10:23 -06:00
parent 0e73869580
commit 0ec5f6608b

View File

@@ -268,6 +268,7 @@ export function SessionHeader() {
<Portal mount={mount()}> <Portal mount={mount()}>
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<Show when={projectDirectory()}> <Show when={projectDirectory()}>
<div class="hidden xl:flex items-center">
<Show <Show
when={canOpen()} when={canOpen()}
fallback={ fallback={
@@ -278,7 +279,9 @@ export function SessionHeader() {
aria-label={language.t("session.header.open.copyPath")} aria-label={language.t("session.header.open.copyPath")}
> >
<Icon name="copy" size="small" class="text-icon-base" /> <Icon name="copy" size="small" class="text-icon-base" />
<span class="text-12-regular text-text-strong">{language.t("session.header.open.copyPath")}</span> <span class="text-12-regular text-text-strong">
{language.t("session.header.open.copyPath")}
</span>
</Button> </Button>
} }
> >
@@ -336,6 +339,7 @@ export function SessionHeader() {
</DropdownMenu> </DropdownMenu>
</div> </div>
</Show> </Show>
</div>
</Show> </Show>
<StatusPopover /> <StatusPopover />
<Show when={showShare()}> <Show when={showShare()}>