Skip to content

Commit

Permalink
fix: fill empty space under puck-root
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Oct 5, 2023
1 parent 327721c commit d42cfb6
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions packages/core/components/Puck/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,26 +436,41 @@ export function Puck({

<div
style={{
padding: 32,
overflowY: "auto",
gridArea: "editor",
position: "relative",
display: "flex",
flexDirection: "column",
}}
onClick={() => setItemSelector(null)}
id="puck-frame"
>
<div
className="puck-root"
style={{
border: "1px solid var(--puck-color-grey-8)",
boxShadow: "0px 0px 0px 3rem var(--puck-color-grey-10)",
boxShadow: "0px 0px 0px 32px var(--puck-color-grey-10)",
margin: 32,
zoom: 0.75,
}}
>
<Page data={data} {...data.root}>
<DropZone zone={rootDroppableId} />
</Page>
<div
style={{
border: "1px solid var(--puck-color-grey-8)",
}}
>
<Page data={data} {...data.root}>
<DropZone zone={rootDroppableId} />
</Page>
</div>
</div>
{/* Fill empty space under root */}
<div
style={{
background: "var(--puck-color-grey-10)",
height: "100%",
flexGrow: 1,
}}
></div>
</div>
<div
style={{
Expand Down

0 comments on commit d42cfb6

Please sign in to comment.