Skip to content

Commit 571e7b8

Browse files
authored
fix(app): hide drawer close button on Windows (anomalyco#36952)
1 parent 888dd26 commit 571e7b8

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

packages/app/src/components/help-button.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export function HelpButton() {
5656
// can remove this after the tabs rollout has been out for a while
5757
export function TabsInfoPopup() {
5858
const settings = useSettings()
59+
const platform = usePlatform()
5960
const [drawerOpen, setDrawerOpen] = createSignal(false)
6061

6162
return (
@@ -116,14 +117,16 @@ export function TabsInfoPopup() {
116117
<p class="min-h-0 min-w-0 flex-1 text-[13px] font-[530] leading-5 tracking-[-0.04px] tabular-nums text-v2-text-text-muted">
117118
July 14
118119
</p>
119-
<DrawerClose
120-
as={IconButtonV2}
121-
type="button"
122-
size="small"
123-
variant="ghost-muted"
124-
aria-label="Close"
125-
icon={<IconV2 name="xmark-small" />}
126-
/>
120+
<Show when={platform.platform !== "desktop" || platform.os !== "windows"}>
121+
<DrawerClose
122+
as={IconButtonV2}
123+
type="button"
124+
size="small"
125+
variant="ghost-muted"
126+
aria-label="Close"
127+
icon={<IconV2 name="xmark-small" />}
128+
/>
129+
</Show>
127130
</div>
128131
<div class="relative flex min-h-0 w-full flex-1 flex-col items-start gap-6 overflow-y-auto p-8">
129132
<p class="w-full shrink-0 self-stretch text-[21px] font-[610] leading-6 tracking-[-0.37px] tabular-nums text-v2-text-text-base">

0 commit comments

Comments
 (0)