Skip to content

Commit 1944ad7

Browse files
committed
fix(ui): restore leading spaces in conditional class concatenations
1 parent 9b34f81 commit 1944ad7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/sim/app/(landing)/components/features/features.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default function Features() {
226226
aria-selected={index === activeTab}
227227
aria-controls='features-panel'
228228
onClick={() => setActiveTab(index)}
229-
className={`relative h-full min-w-0 flex-1 items-center justify-center px-2 font-medium font-season text-[var(--landing-text-dark)] text-caption uppercase lg:px-0 lg:text-sm${tab.hideOnMobile ? 'hidden lg:flex' : 'flex'}${index > 0 ? 'border-[var(--divider)] border-l' : ''}`}
229+
className={`relative h-full min-w-0 flex-1 items-center justify-center px-2 font-medium font-season text-[var(--landing-text-dark)] text-caption uppercase lg:px-0 lg:text-sm${tab.hideOnMobile ? ' hidden lg:flex' : ' flex'}${index > 0 ? ' border-[var(--divider)] border-l' : ''}`}
230230
style={{ backgroundColor: index === activeTab ? '#FDFDFD' : '#F6F6F6' }}
231231
>
232232
<span className='truncate'>{tab.label}</span>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function SubflowEditor({
204204
<div
205205
className={
206206
'connections-section flex flex-shrink-0 flex-col overflow-hidden border-[var(--border)] border-t' +
207-
(!isResizing ? 'transition-[height] duration-100 ease-out' : '')
207+
(!isResizing ? ' transition-[height] duration-100 ease-out' : '')
208208
}
209209
style={{ height: `${connectionsHeight}px` }}
210210
>
@@ -231,7 +231,7 @@ export function SubflowEditor({
231231
<ChevronUp
232232
className={
233233
'h-[14px] w-[14px] transition-transform' +
234-
(!isConnectionsAtMinHeight ? 'rotate-180' : '')
234+
(!isConnectionsAtMinHeight ? ' rotate-180' : '')
235235
}
236236
/>
237237
<div className='font-medium text-[var(--text-primary)] text-small'>Connections</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export function Editor() {
713713
<div
714714
className={
715715
'connections-section flex flex-shrink-0 flex-col overflow-hidden border-[var(--border)] border-t' +
716-
(!isResizing ? 'transition-[height] duration-100 ease-out' : '')
716+
(!isResizing ? ' transition-[height] duration-100 ease-out' : '')
717717
}
718718
style={{ height: `${connectionsHeight}px` }}
719719
>
@@ -744,7 +744,7 @@ export function Editor() {
744744
<ChevronUp
745745
className={
746746
'h-[14px] w-[14px] transition-transform' +
747-
(!isConnectionsAtMinHeight ? 'rotate-180' : '')
747+
(!isConnectionsAtMinHeight ? ' rotate-180' : '')
748748
}
749749
/>
750750
<div className='font-medium text-[var(--text-primary)] text-small'>Connections</div>

0 commit comments

Comments
 (0)