From b78f2affb611bcabe394277e147e459502343453 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 29 May 2026 02:20:43 +0330 Subject: [PATCH] Move POS page to fullscreen layout for full viewport width MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit POS terminal needs the entire screen — the dashboard navigation sidebar (224px) was eating into the cashier's working space. Moving /pos from (dashboard) to (fullscreen) gives the POS the full viewport with no chrome. Auth redirect and CafeThemeProvider are applied directly in the new page. Co-Authored-By: Claude Sonnet 4.6 --- .../src/app/[locale]/(dashboard)/pos/page.tsx | 13 ------------- .../src/app/[locale]/(fullscreen)/pos/page.tsx | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 13 deletions(-) delete mode 100644 web/dashboard/src/app/[locale]/(dashboard)/pos/page.tsx create mode 100644 web/dashboard/src/app/[locale]/(fullscreen)/pos/page.tsx diff --git a/web/dashboard/src/app/[locale]/(dashboard)/pos/page.tsx b/web/dashboard/src/app/[locale]/(dashboard)/pos/page.tsx deleted file mode 100644 index e91cfb3..0000000 --- a/web/dashboard/src/app/[locale]/(dashboard)/pos/page.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { Suspense } from "react"; -import { PosScreen } from "@/components/pos/pos-screen"; - -/** Full viewport height below topbar; no page scroll — only inner panes scroll. */ -export default function PosPage() { - return ( -
- - - -
- ); -} diff --git a/web/dashboard/src/app/[locale]/(fullscreen)/pos/page.tsx b/web/dashboard/src/app/[locale]/(fullscreen)/pos/page.tsx new file mode 100644 index 0000000..a0a76fc --- /dev/null +++ b/web/dashboard/src/app/[locale]/(fullscreen)/pos/page.tsx @@ -0,0 +1,16 @@ +import { Suspense } from "react"; +import { CafeThemeProvider } from "@/components/theme/cafe-theme-provider"; +import { PosScreen } from "@/components/pos/pos-screen"; + +/** Full-viewport POS terminal — no sidebar, no topbar. */ +export default function PosPage() { + return ( + +
+ + + +
+
+ ); +}