fix(webhook): selected type ui style (#25106)

This commit is contained in:
cathy
2025-09-04 10:59:08 +08:00
committed by GitHub
parent 4bdbe617fe
commit 5cf3d24018
3 changed files with 12 additions and 13 deletions

View File

@ -171,14 +171,15 @@ const GenericTable: FC<GenericTableProps> = ({
onSelect={item => handleChange(item.value)}
disabled={readonly}
placeholder={column.placeholder}
hideChecked={false}
notClearable={true}
// wrapper provides compact height, trigger is transparent like text
wrapperClassName="h-6 w-full min-w-0"
className={cn(
'h-6 rounded-none bg-transparent px-0 text-text-secondary',
'h-6 rounded-none bg-transparent pl-0 pr-6 text-text-secondary',
'hover:bg-transparent focus-visible:bg-transparent group-hover/simple-select:bg-transparent',
)}
optionWrapClassName="w-26 min-w-26 z-[60] -ml-3"
notClearable
/>
)

View File

@ -46,7 +46,7 @@ const ParameterTable: FC<ParameterTableProps> = ({
key: 'type',
title: 'Type',
type: (isRequestBody ? 'select' : 'input') as ColumnConfig['type'],
width: 'w-[78px]',
width: 'w-[120px]',
placeholder: 'Type',
options: isRequestBody ? typeOptions : undefined,
}]