diff --git a/packages/client/src/components/global/MkPageHeader.vue b/packages/client/src/components/global/MkPageHeader.vue
index 34d682673c..4a889c9802 100644
--- a/packages/client/src/components/global/MkPageHeader.vue
+++ b/packages/client/src/components/global/MkPageHeader.vue
@@ -101,7 +101,7 @@
-
+
{{ i18n.ts.home }}
@@ -162,6 +162,10 @@ type Tab = {
onClick?: (ev: MouseEvent) => void;
};
+let isDesktop = $ref(window.innerWidth >= 1100);
+matchMedia(`(min-width: ${1100 - 1}px)`).onchange = (mql) => {
+ isDesktop = mql.matches;
+};
const props = withDefaults(
defineProps<{
tabs?: Tab[];
@@ -179,7 +183,7 @@ const props = withDefaults(
to?: string;
}>(),
{
- displayHomeButton: !$i && window.innerWidth >= 1100,
+ displayHomeButton: !$i,
}
);