Skip to content

Commit 3036783

Browse files
fix: prevent canvas preview content overflow
Added overflow-hidden class to canvas preview button to ensure content stays within container bounds and maintains consistent max height of 40vh.
1 parent fde5fb6 commit 3036783

File tree

1 file changed

+1
-1
lines changed
  • packages/social-media-app/frontend/src/canvas

1 file changed

+1
-1
lines changed

packages/social-media-app/frontend/src/canvas/Preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const CanvasPreview = (properties: { canvas: CanvasDB }) => {
2323

2424
return (
2525
<button
26-
className="btn w-full flex flex-row p-0 border border-solid max-h-[40vh]"
26+
className="btn w-full flex flex-row p-0 border border-solid max-h-[40vh] overflow-hidden"
2727
onClick={async () => {
2828
navigate(getCanvasPath(properties.canvas), {});
2929
}}

0 commit comments

Comments
 (0)