fix: style misalignment and inconsistency (#5149)

This commit is contained in:
非法操作 2024-06-13 16:32:42 +08:00 committed by GitHub
parent 8210637bc5
commit 015c26d303
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -152,11 +152,11 @@ const SettingBuiltInTool: FC<Props> = ({
isShow
onHide={onHide}
title={(
<div className='flex'>
<div className='flex items-center'>
{typeof collection.icon === 'string'
? (
<div
className='w-6 h-6 bg-cover bg-center rounded-md'
className='w-6 h-6 bg-cover bg-center rounded-md flex-shrink-0'
style={{
backgroundImage: `url(${collection.icon})`,
}}

View File

@ -236,7 +236,7 @@ const Form: FC<FormProps> = ({
<div key={variable} className={cn(itemClassName, 'py-3')}>
<div className='flex items-center justify-between py-2 text-sm text-gray-900'>
<div className='flex items-center space-x-2'>
<span>{label[language] || label.en_US}</span>
<span className={cn(fieldLabelClassName, 'py-2 text-sm text-gray-900')}>{label[language] || label.en_US}</span>
{tooltipContent}
</div>
<Radio.Group