Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/app/components/banner/BannerPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const BannerPreview = ({
position: 'relative',
width: '100%',
height: '100%',
flex: 1,
}}
/>
)
Expand Down
17 changes: 5 additions & 12 deletions frontend/app/components/redesign/components/BuilderBackground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const BuilderBackground: React.FC<BuilderBackgroundProps> = ({
onPreviewClick,
}) => {
const snap = useSnapshot(toolState)
const isWidgetTool = snap.currentToolType === 'widget'
const isAnimationDisabled =
snap.currentConfig.bannerSlideAnimation === SLIDE_ANIMATION.None

Expand All @@ -39,11 +38,8 @@ export const BuilderBackground: React.FC<BuilderBackgroundProps> = ({
<div
id="builder-background"
className={cx(
'bg-silver-100',
'rounded-[20px]',
'p-md',
'flex flex-col items-center justify-end',
'min-h-[600px]',
'bg-silver-100 rounded-[20px] p-md flex flex-col items-center min-h-[600px]',
onPreviewClick && 'gap-4xl',
className,
)}
style={{
Expand All @@ -55,7 +51,7 @@ export const BuilderBackground: React.FC<BuilderBackgroundProps> = ({
{onPreviewClick && !isAnimationDisabled && (
<ToolsSecondaryButton
icon="play"
className="w-[130px] order-first mb-auto"
className="w-[130px]"
onClick={onPreviewClick}
>
Preview
Expand All @@ -64,10 +60,7 @@ export const BuilderBackground: React.FC<BuilderBackgroundProps> = ({

<div
id="browser-mockup"
className={cx(
'w-full bg-transparent rounded-2xl border border-field-border overflow-hidden flex flex-col',
isWidgetTool ? 'h-[752px]' : 'h-[406px]',
)}
className="w-full flex-1 rounded-2xl border border-field-border overflow-hidden flex flex-col"
>
<div className="flex items-center p-md bg-white">
<div className="flex items-center gap-4 w-full">
Expand All @@ -78,7 +71,7 @@ export const BuilderBackground: React.FC<BuilderBackgroundProps> = ({

<div
id="browser-content"
className="flex-1 p-md bg-transparent [container-type:inline-size]"
className="flex-1 flex flex-col p-md [container-type:inline-size]"
>
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/widget/WidgetPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const WidgetPreview = ({
style={{
position: 'relative',
width: '100%',
height: '100%',
height: '678px',
display: 'flex',
flexDirection: 'column',
justifyContent: 'flex-end',
Expand Down