fix(app): hide drawer close button on Windows (#36952)
This commit is contained in:
@@ -56,6 +56,7 @@ export function HelpButton() {
|
|||||||
// can remove this after the tabs rollout has been out for a while
|
// can remove this after the tabs rollout has been out for a while
|
||||||
export function TabsInfoPopup() {
|
export function TabsInfoPopup() {
|
||||||
const settings = useSettings()
|
const settings = useSettings()
|
||||||
|
const platform = usePlatform()
|
||||||
const [drawerOpen, setDrawerOpen] = createSignal(false)
|
const [drawerOpen, setDrawerOpen] = createSignal(false)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -116,14 +117,16 @@ export function TabsInfoPopup() {
|
|||||||
<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">
|
<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">
|
||||||
July 14
|
July 14
|
||||||
</p>
|
</p>
|
||||||
<DrawerClose
|
<Show when={platform.platform !== "desktop" || platform.os !== "windows"}>
|
||||||
as={IconButtonV2}
|
<DrawerClose
|
||||||
type="button"
|
as={IconButtonV2}
|
||||||
size="small"
|
type="button"
|
||||||
variant="ghost-muted"
|
size="small"
|
||||||
aria-label="Close"
|
variant="ghost-muted"
|
||||||
icon={<IconV2 name="xmark-small" />}
|
aria-label="Close"
|
||||||
/>
|
icon={<IconV2 name="xmark-small" />}
|
||||||
|
/>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative flex min-h-0 w-full flex-1 flex-col items-start gap-6 overflow-y-auto p-8">
|
<div class="relative flex min-h-0 w-full flex-1 flex-col items-start gap-6 overflow-y-auto p-8">
|
||||||
<p class="w-full shrink-0 self-stretch text-[21px] font-[610] leading-6 tracking-[-0.37px] tabular-nums text-v2-text-text-base">
|
<p class="w-full shrink-0 self-stretch text-[21px] font-[610] leading-6 tracking-[-0.37px] tabular-nums text-v2-text-text-base">
|
||||||
|
|||||||
Reference in New Issue
Block a user