diff --git a/apps/artboard/src/pages/artboard.tsx b/apps/artboard/src/pages/artboard.tsx index 7257dbee..5dbfb91f 100644 --- a/apps/artboard/src/pages/artboard.tsx +++ b/apps/artboard/src/pages/artboard.tsx @@ -19,8 +19,9 @@ export const ArtboardPage = () => { webfontloader.load({ google: { families: [fontString] }, active: () => { + const width = window.document.body.offsetWidth; const height = window.document.body.offsetHeight; - const message = { type: "PAGE_LOADED", payload: { height } }; + const message = { type: "PAGE_LOADED", payload: { width, height } }; window.postMessage(message, "*"); }, }); diff --git a/apps/artboard/src/templates/azurill.tsx b/apps/artboard/src/templates/azurill.tsx index 3ee6c221..47fae85a 100644 --- a/apps/artboard/src/templates/azurill.tsx +++ b/apps/artboard/src/templates/azurill.tsx @@ -490,7 +490,7 @@ export const Azurill = ({ columns, isFirstPage = false }: TemplateProps) => { {isFirstPage &&
}
-
+
{sidebar.map((section) => ( {mapSectionToComponent(section)} ))} diff --git a/apps/artboard/src/templates/bronzor.tsx b/apps/artboard/src/templates/bronzor.tsx index 5646eef0..3883018d 100644 --- a/apps/artboard/src/templates/bronzor.tsx +++ b/apps/artboard/src/templates/bronzor.tsx @@ -79,7 +79,7 @@ const Summary = () => { return (
-
+

{section.name}

@@ -153,7 +153,7 @@ const Section = ({ return (
-
+

{section.name}

diff --git a/apps/artboard/src/templates/chikorita.tsx b/apps/artboard/src/templates/chikorita.tsx index e9e95fa8..c81fefd8 100644 --- a/apps/artboard/src/templates/chikorita.tsx +++ b/apps/artboard/src/templates/chikorita.tsx @@ -503,7 +503,7 @@ export const Chikorita = ({ columns, isFirstPage = false }: TemplateProps) => { ))}
-
+
{sidebar.map((section) => ( {mapSectionToComponent(section)} ))} @@ -511,7 +511,7 @@ export const Chikorita = ({ columns, isFirstPage = false }: TemplateProps) => {
-
+
); diff --git a/apps/artboard/src/templates/ditto.tsx b/apps/artboard/src/templates/ditto.tsx index a1e78b72..33feeaf5 100644 --- a/apps/artboard/src/templates/ditto.tsx +++ b/apps/artboard/src/templates/ditto.tsx @@ -30,7 +30,7 @@ const Header = () => { return (
-
+
@@ -530,7 +530,7 @@ export const Ditto = ({ columns, isFirstPage = false }: TemplateProps) => { {isFirstPage &&
}
-
+
{sidebar.map((section) => ( {mapSectionToComponent(section)} ))} diff --git a/apps/artboard/src/templates/pikachu.tsx b/apps/artboard/src/templates/pikachu.tsx index 871c4d02..c7a3e4e8 100644 --- a/apps/artboard/src/templates/pikachu.tsx +++ b/apps/artboard/src/templates/pikachu.tsx @@ -526,7 +526,7 @@ export const Pikachu = ({ columns, isFirstPage = false }: TemplateProps) => { return (
-
+
{isFirstPage && } {sidebar.map((section) => ( diff --git a/apps/client/src/pages/builder/_components/header.tsx b/apps/client/src/pages/builder/_components/header.tsx index cf8bf884..732a5772 100644 --- a/apps/client/src/pages/builder/_components/header.tsx +++ b/apps/client/src/pages/builder/_components/header.tsx @@ -32,7 +32,7 @@ export const BuilderHeader = () => {
diff --git a/apps/client/src/pages/builder/_components/toolbar.tsx b/apps/client/src/pages/builder/_components/toolbar.tsx index 3d54597e..13a34c77 100644 --- a/apps/client/src/pages/builder/_components/toolbar.tsx +++ b/apps/client/src/pages/builder/_components/toolbar.tsx @@ -50,19 +50,17 @@ export const BuilderToolbar = () => { return (
- {/* Undo */} - {/* Redo */} - {/* Download PDF */} - +
- +
); diff --git a/apps/client/src/pages/builder/sidebars/left/sections/custom/section.tsx b/apps/client/src/pages/builder/sidebars/left/sections/custom/section.tsx index 9c33aa67..9a0af2fc 100644 --- a/apps/client/src/pages/builder/sidebars/left/sections/custom/section.tsx +++ b/apps/client/src/pages/builder/sidebars/left/sections/custom/section.tsx @@ -32,20 +32,13 @@ export const CustomField = ({ field, onChange, onRemove }: CustomFieldProps) =>
- {/* handleChange("icon", event.target.value)} - /> */} -