fix: Fixed the X-axis scroll bar issue in the LLM node settings panel (#25357)

This commit is contained in:
HuDenghui 2025-09-09 09:47:27 +08:00 • committed by GitHub
commit d5e86d9180
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,12 +186,12 @@ const ParameterItem: FC<ParameterItemProps> = ({
if (parameterRule.type === 'boolean') { if (parameterRule.type === 'boolean') {
return ( return (
<Radio.Group <Radio.Group
className='flex w-[178px] items-center' className='flex w-[150px] items-center'
value={renderValue as boolean} value={renderValue as boolean}
onChange={handleRadioChange} onChange={handleRadioChange}
> >
<Radio value={true} className='w-[83px]'>True</Radio> <Radio value={true} className='w-[70px] px-[18px]'>True</Radio>
<Radio value={false} className='w-[83px]'>False</Radio> <Radio value={false} className='w-[70px] px-[18px]'>False</Radio>
</Radio.Group> </Radio.Group>
) )
} }
@ -199,7 +199,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
if (parameterRule.type === 'string' && !parameterRule.options?.length) { if (parameterRule.type === 'string' && !parameterRule.options?.length) {
return ( return (
<input <input
className={cn(isInWorkflow ? 'w-[178px]' : 'w-full', 'system-sm-regular ml-4 flex h-8 appearance-none items-center rounded-lg bg-components-input-bg-normal px-3 text-components-input-text-filled outline-none')} className={cn(isInWorkflow ? 'w-[150px]' : 'w-full', 'system-sm-regular ml-4 flex h-8 appearance-none items-center rounded-lg bg-components-input-bg-normal px-3 text-components-input-text-filled outline-none')}
value={renderValue as string} value={renderValue as string}
onChange={handleStringInputChange} onChange={handleStringInputChange}
/> />
@ -270,7 +270,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
parameterRule.help && ( parameterRule.help && (
<Tooltip <Tooltip
popupContent={( popupContent={(
<div className='w-[178px] whitespace-pre-wrap'>{parameterRule.help[language] || parameterRule.help.en_US}</div> <div className='w-[150px] whitespace-pre-wrap'>{parameterRule.help[language] || parameterRule.help.en_US}</div>
)} )}
popupClassName='mr-1' popupClassName='mr-1'
triggerClassName='mr-1 w-4 h-4 shrink-0' triggerClassName='mr-1 w-4 h-4 shrink-0'
@ -280,7 +280,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
</div> </div>
{ {
parameterRule.type === 'tag' && ( parameterRule.type === 'tag' && (
<div className={cn(!isInWorkflow && 'w-[178px]', 'system-xs-regular text-text-tertiary')}> <div className={cn(!isInWorkflow && 'w-[150px]', 'system-xs-regular text-text-tertiary')}>
{parameterRule?.tagPlaceholder?.[language]} {parameterRule?.tagPlaceholder?.[language]}
</div> </div>
) )