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
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ export const eventSectionSlots: Migration = {
width: event.image?.width || 640,
aspectRatio:
event.image?.width && event.image?.height
? event.image.width / event.image.height
? parseFloat(
(
event.image.width / event.image.height
).toFixed(2)
)
: 16 / 9,
},
className: "max-w-full h-full object-cover",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const productSectionSlots: Migration = {
},
styles: {
width: 640,
aspectRatio: 16 / 9,
aspectRatio: 1.78,
},
sizes: {
base: "calc(100vw - 32px)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export const insightSectionSlots: Migration = {
width: insight.image?.width || 640,
aspectRatio:
insight.image?.width && insight.image?.height
? insight.image.width / insight.image.height
? parseFloat(
(
insight.image.width / insight.image.height
).toFixed(2)
)
: 16 / 9,
},
className: "max-w-full h-full object-cover",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const ProductCardComponent: PuckComponent<ProductCardProps> = (props) => {
background={styles.backgroundColor}
ref={puck.dragRef}
>
<slots.ImageSlot className="h-auto sm:h-[200px]" allow={[]} />
<slots.ImageSlot className="h-auto sm:min-h-[200px]" allow={[]} />
<div className="p-8 gap-8 flex flex-col">
<div className="gap-4 flex flex-col flex-grow">
<slots.TitleSlot style={{ height: "auto" }} allow={[]} />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.