Skip to content

Commit 3e17627

Browse files
waleedlatif1claude
andcommitted
fix(tool-input): align (optional) text to baseline instead of center
Use items-baseline instead of items-center on Label flex containers so the smaller (optional) text aligns with the label text baseline rather than sitting slightly below it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a25b26e commit 3e17627

File tree

2 files changed

+2
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function ParameterWithLabel({
8787
return (
8888
<div key={paramId} className='relative min-w-0 space-y-[6px]'>
8989
<div className='flex items-center justify-between gap-[6px] pl-[2px]'>
90-
<Label className='flex items-center gap-[6px] whitespace-nowrap font-medium text-[13px] text-[var(--text-primary)]'>
90+
<Label className='flex items-baseline gap-[6px] whitespace-nowrap font-medium text-[13px] text-[var(--text-primary)]'>
9191
{title}
9292
{isRequired && visibility === 'user-only' && <span className='ml-0.5'>*</span>}
9393
{visibility !== 'user-only' && (

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const renderLabel = (
215215

216216
return (
217217
<div className='flex items-center justify-between gap-[6px] pl-[2px]'>
218-
<Label className='flex items-center gap-[6px] whitespace-nowrap'>
218+
<Label className='flex items-baseline gap-[6px] whitespace-nowrap'>
219219
{config.title}
220220
{required && <span className='ml-0.5'>*</span>}
221221
{labelSuffix}

0 commit comments

Comments
 (0)