diff --git a/components/layout/mode-workspace.tsx b/components/layout/mode-workspace.tsx
index 1783f5d..e9a782c 100644
--- a/components/layout/mode-workspace.tsx
+++ b/components/layout/mode-workspace.tsx
@@ -13,7 +13,7 @@ export function ModeWorkspace({
}) {
return (
-
+
{children}
diff --git a/components/page-shell.tsx b/components/page-shell.tsx
index 180cc4b..f6a41eb 100644
--- a/components/page-shell.tsx
+++ b/components/page-shell.tsx
@@ -27,7 +27,8 @@ export default function PageShell({
{
+ const standalone =
+ window.matchMedia("(display-mode: standalone)").matches ||
+ (window.navigator as Navigator & { standalone?: boolean }).standalone ===
+ true;
+
+ if (standalone) {
+ document.documentElement.dataset.displayMode = "standalone";
+ }
+ }, []);
+
+ return null;
+}