diff --git a/workbench/_web/bun.lock b/workbench/_web/bun.lock index 71930599..466efaf2 100644 --- a/workbench/_web/bun.lock +++ b/workbench/_web/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "nextjs-shadcn", diff --git a/workbench/_web/src/app/globals.css b/workbench/_web/src/app/globals.css index 432fe5cf..9521cc38 100644 --- a/workbench/_web/src/app/globals.css +++ b/workbench/_web/src/app/globals.css @@ -140,3 +140,19 @@ .scrollbar-hide::-webkit-scrollbar { display: none; /* Chrome, Safari and Opera */ } + +.print-hide { + @media print { + display: none; + } +} +.printable { + background-color: red; + @media print { + /* 1. Force the canvas to be no wider than the printable area */ + max-width: 100% !important; + + /* 2. Maintain the aspect ratio by letting the height auto-adjust */ + height: auto !important; + } +} diff --git a/workbench/_web/src/app/workbench/[workspaceId]/layout.tsx b/workbench/_web/src/app/workbench/[workspaceId]/layout.tsx index 6c017ae9..36a72bca 100644 --- a/workbench/_web/src/app/workbench/[workspaceId]/layout.tsx +++ b/workbench/_web/src/app/workbench/[workspaceId]/layout.tsx @@ -17,7 +17,7 @@ export default function WorkbenchLayout({ }>) { return (
-
+
{isQueuedToSave || mutation.isPending ? ( <> diff --git a/workbench/_web/src/app/workbench/[workspaceId]/overview/[overviewId]/components/nodes/ChartEmbedNode.tsx b/workbench/_web/src/app/workbench/[workspaceId]/overview/[overviewId]/components/nodes/ChartEmbedNode.tsx index 25a5c430..69aaaab3 100644 --- a/workbench/_web/src/app/workbench/[workspaceId]/overview/[overviewId]/components/nodes/ChartEmbedNode.tsx +++ b/workbench/_web/src/app/workbench/[workspaceId]/overview/[overviewId]/components/nodes/ChartEmbedNode.tsx @@ -208,7 +208,7 @@ function ChartEmbedComponent({ return ( { e.preventDefault(); e.stopPropagation(); @@ -219,7 +219,7 @@ function ChartEmbedComponent({ >
{name} -
+