Skip to content

Commit a1395f4

Browse files
committed
fix(modal): restore sidebar-width padding on non-workflow pages
1 parent 2eada03 commit a1395f4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • apps/sim/components/emcn/components/modal

apps/sim/components/emcn/components/modal/modal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ const ModalContent = React.forwardRef<
157157
<ModalOverlay />
158158
<div
159159
className='pointer-events-none fixed inset-0 z-[var(--z-modal)] flex items-center justify-center'
160-
style={
161-
isWorkflowPage
162-
? { paddingLeft: 'calc(var(--sidebar-width) - var(--panel-width))' }
163-
: undefined
164-
}
160+
style={{
161+
paddingLeft: isWorkflowPage
162+
? 'calc(var(--sidebar-width) - var(--panel-width))'
163+
: 'var(--sidebar-width)',
164+
}}
165165
>
166166
<DialogPrimitive.Content
167167
ref={ref}

0 commit comments

Comments
 (0)