Skip to content

Commit dd16239

Browse files
committed
updated short and long input to match others, reverted triggerutils change
1 parent d895701 commit dd16239

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/long-input/long-input.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ export function LongInput({
354354
ref={overlayRef}
355355
className={cn(
356356
'absolute inset-0 box-border overflow-auto whitespace-pre-wrap break-words border border-transparent bg-transparent px-[8px] py-[8px] font-medium font-sans text-sm',
357-
isPreview || disabled ? 'opacity-50' : 'pointer-events-none'
357+
(isPreview || disabled) && 'opacity-50',
358+
!(isPreview || disabled) && 'pointer-events-none'
358359
)}
359360
style={{
360361
fontFamily: 'inherit',

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/short-input/short-input.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ export const ShortInput = memo(function ShortInput({
373373
ref={overlayRef}
374374
className={cn(
375375
'absolute inset-0 flex items-center overflow-x-auto bg-transparent px-[8px] py-[6px] pr-3 font-medium font-sans text-foreground text-sm [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden',
376-
isPreview || disabled ? 'opacity-50' : 'pointer-events-none'
376+
(isPreview || disabled) && 'opacity-50',
377+
!(isPreview || disabled) && 'pointer-events-none'
377378
)}
378379
>
379380
<div className='min-w-fit whitespace-pre'>{formattedText}</div>

apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/preview-editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
isSubBlockFeatureEnabled,
3838
isSubBlockVisibleForMode,
3939
} from '@/lib/workflows/subblocks/visibility'
40-
import { TriggerUtils } from '@/lib/workflows/triggers/triggers'
4140
import { DELETED_WORKFLOW_LABEL } from '@/app/workspace/[workspaceId]/logs/utils'
4241
import { SubBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components'
4342
import { PreviewContextMenu } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-context-menu'
@@ -1142,7 +1141,7 @@ function PreviewEditorContent({
11421141
hasAdvancedValues(blockConfig.subBlocks, rawValues, canonicalIndex)
11431142

11441143
const isPureTriggerBlock = blockConfig.triggers?.enabled && blockConfig.category === 'triggers'
1145-
const effectiveTrigger = TriggerUtils.isTriggerBlock(block)
1144+
const effectiveTrigger = block.triggerMode === true
11461145

11471146
const visibleSubBlocks = blockConfig.subBlocks.filter((subBlock) => {
11481147
if (subBlock.hidden || subBlock.hideFromPreview) return false

0 commit comments

Comments
 (0)