Skip to content

Commit fd7c10b

Browse files
WEB-77 Show dropzone outline (#92)
- Fix invisible dropzone outline by lifting the padding in Container to outside the Content element
2 parents 6b266e5 + 124fdb4 commit fd7c10b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/puck/Container.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export const Container: React.FC<ContainerProps> = ({
1414
gap = "",
1515
outline = "",
1616
}) => (
17-
Content && <Content minEmptyHeight="256px" className={`flex flex-col w-full ${padding} ${gap} ${outline}`} />
17+
<div className={`w-full ${padding} ${outline}`}>
18+
{Content && <Content minEmptyHeight="256px" className={`flex flex-col w-full ${gap}`} />}
19+
</div>
1820
)
1921

2022
export const ContainerConfig: ComponentConfig<ContainerProps> = {

0 commit comments

Comments
 (0)