Skip to content

Commit 36945de

Browse files
authored
improvement(preview): consolidate block rendering and fix handle configurations (#3013)
* improvement(preview): consolidate block rendering and fix handle configurations * refactor(preview): extract SubflowContainerProps interface
1 parent ebf2852 commit 36945de

File tree

7 files changed

+340
-236
lines changed

7 files changed

+340
-236
lines changed

apps/sim/app/templates/components/template-card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function TemplateCardInner({
207207
isPannable={false}
208208
defaultZoom={0.8}
209209
fitPadding={0.2}
210+
lightweight
210211
/>
211212
) : (
212213
<div className='h-full w-full bg-[var(--surface-4)]' />

apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ function TemplateCardInner({
214214
defaultZoom={0.8}
215215
fitPadding={0.2}
216216
cursorStyle='pointer'
217+
lightweight
217218
/>
218219
) : (
219220
<div className='h-full w-full bg-[var(--surface-4)] dark:bg-[var(--surface-5)]' />

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/template/template.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ const OGCaptureContainer = forwardRef<HTMLDivElement>((_, ref) => {
446446
isPannable={false}
447447
defaultZoom={0.8}
448448
fitPadding={0.2}
449+
lightweight
449450
/>
450451
</div>
451452
)

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ export function Editor() {
466466
defaultZoom={0.6}
467467
fitPadding={0.15}
468468
cursorStyle='grab'
469+
lightweight
469470
/>
470471
</div>
471472
<Tooltip.Root>

0 commit comments

Comments
 (0)