lint: fix tailwind lint issues (#23367)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Matri Qi 2025-08-08 09:25:41 +08:00 • committed by GitHub
commit cb5e2ad9b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 99 additions and 103 deletions

View file

@ -145,7 +145,7 @@ const ModelLoadBalancingConfigs = ({
<>
<div
className={classNames(
'min-h-16 bg-components-panel-bg border rounded-xl transition-colors',
'min-h-16 rounded-xl border bg-components-panel-bg transition-colors',
(withSwitch || !draftConfig.enabled) ? 'border-components-panel-border' : 'border-util-colors-blue-blue-600',
(withSwitch || draftConfig.enabled) ? 'cursor-default' : 'cursor-pointer',
className,
@ -259,7 +259,7 @@ const ModelLoadBalancingConfigs = ({
<GridMask canvasClassName='!rounded-xl'>
<div className='mt-2 flex h-14 items-center justify-between rounded-xl border-[0.5px] border-components-panel-border px-4 shadow-md'>
<div
className={classNames('text-sm font-semibold leading-tight text-gradient', s.textGradient)}
className={classNames('text-gradient text-sm font-semibold leading-tight', s.textGradient)}
>
{t('common.modelProvider.upgradeForLoadBalancing')}
</div>

View file

@ -137,8 +137,8 @@ const ModelLoadBalancingModal = ({ provider, model, open = false, onClose, onSav
<div className='py-2'>
<div
className={classNames(
'min-h-16 bg-components-panel-bg border rounded-xl transition-colors',
draftConfig.enabled ? 'border-components-panel-border cursor-pointer' : 'border-util-colors-blue-blue-600 cursor-default',
'min-h-16 rounded-xl border bg-components-panel-bg transition-colors',
draftConfig.enabled ? 'cursor-pointer border-components-panel-border' : 'cursor-default border-util-colors-blue-blue-600',
)}
onClick={draftConfig.enabled ? () => toggleModalBalancing(false) : undefined}
>