fix: icon vertical align

This commit is contained in:
Zephyruso 2023-09-05 21:31:41 +08:00
parent d908776bf9
commit c6f3beec35

View File

@ -88,21 +88,19 @@ export default () => {
<div class="break-all"> <div class="break-all">
{rulesProvider.name} ({rulesProvider.ruleCount}) {rulesProvider.name} ({rulesProvider.ruleCount})
</div> </div>
<div class="h-6"> <Button
<Button class="btn-circle btn-sm mr-2"
class="btn-circle btn-sm mr-2" onClick={(e) =>
onClick={(e) => onUpdateProviderClick(e, rulesProvider.name)
onUpdateProviderClick(e, rulesProvider.name) }
} >
> <IconReload
<IconReload class={twMerge(
class={twMerge( updatingMap()[rulesProvider.name] &&
updatingMap()[rulesProvider.name] && 'animate-spin text-success',
'animate-spin text-success', )}
)} />
/> </Button>
</Button>
</div>
</div> </div>
<div class="text-xs text-slate-500"> <div class="text-xs text-slate-500">
{rulesProvider.vehicleType} / {rulesProvider.behavior} / {rulesProvider.vehicleType} / {rulesProvider.behavior} /