chore: format
This commit is contained in:
@@ -15,10 +15,12 @@
|
||||
class=" outline -outline-offset-1 outline-[1.5px] outline-gray-200 dark:outline-gray-600 {state !==
|
||||
'unchecked'
|
||||
? 'bg-black outline-black '
|
||||
: 'hover:outline-gray-500 hover:bg-gray-50 dark:hover:bg-gray-800'} text-white transition-all rounded-sm inline-block w-3.5 h-3.5 relative {disabled ? 'opacity-50 cursor-not-allowed' : ''}"
|
||||
: 'hover:outline-gray-500 hover:bg-gray-50 dark:hover:bg-gray-800'} text-white transition-all rounded-sm inline-block w-3.5 h-3.5 relative {disabled
|
||||
? 'opacity-50 cursor-not-allowed'
|
||||
: ''}"
|
||||
on:click={() => {
|
||||
if (disabled) return;
|
||||
|
||||
|
||||
if (_state === 'unchecked') {
|
||||
_state = 'checked';
|
||||
dispatch('change', _state);
|
||||
|
||||
@@ -101,7 +101,11 @@
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<Tooltip content={decodeURIComponent(name)} className="flex flex-col w-full" placement="top-start">
|
||||
<Tooltip
|
||||
content={decodeURIComponent(name)}
|
||||
className="flex flex-col w-full"
|
||||
placement="top-start"
|
||||
>
|
||||
<div class="flex flex-col justify-center -space-y-0.5 px-2.5 w-full">
|
||||
<div class=" dark:text-gray-100 text-sm flex justify-between items-center">
|
||||
{#if loading}
|
||||
|
||||
Reference in New Issue
Block a user