diff --git a/frontend/app/components/banner/BannerPreview.tsx b/frontend/app/components/banner/BannerPreview.tsx index ea333e67..4613b126 100644 --- a/frontend/app/components/banner/BannerPreview.tsx +++ b/frontend/app/components/banner/BannerPreview.tsx @@ -93,6 +93,7 @@ export const BannerPreview = ({ position: 'relative', width: '100%', height: '100%', + flex: 1, }} /> ) diff --git a/frontend/app/components/redesign/components/BuilderBackground.tsx b/frontend/app/components/redesign/components/BuilderBackground.tsx index 82822a2e..71212a68 100644 --- a/frontend/app/components/redesign/components/BuilderBackground.tsx +++ b/frontend/app/components/redesign/components/BuilderBackground.tsx @@ -27,7 +27,6 @@ export const BuilderBackground: React.FC = ({ onPreviewClick, }) => { const snap = useSnapshot(toolState) - const isWidgetTool = snap.currentToolType === 'widget' const isAnimationDisabled = snap.currentConfig.bannerSlideAnimation === SLIDE_ANIMATION.None @@ -39,11 +38,8 @@ export const BuilderBackground: React.FC = ({
= ({ {onPreviewClick && !isAnimationDisabled && ( Preview @@ -64,10 +60,7 @@ export const BuilderBackground: React.FC = ({
@@ -78,7 +71,7 @@ export const BuilderBackground: React.FC = ({
{children}
diff --git a/frontend/app/components/widget/WidgetPreview.tsx b/frontend/app/components/widget/WidgetPreview.tsx index 5e2aac25..0c969e76 100644 --- a/frontend/app/components/widget/WidgetPreview.tsx +++ b/frontend/app/components/widget/WidgetPreview.tsx @@ -74,7 +74,7 @@ export const WidgetPreview = ({ style={{ position: 'relative', width: '100%', - height: '100%', + height: '678px', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end',