refac
This commit is contained in:
1 parent
934802e186
commit
bd250a0e24
6 files changed
+24
-19
No files matched your search
@@ -1476,7 +1476,6 @@
|
||||
type="button"
|
||||
class="flex items-center justify-center w-7 h-7 rounded-lg text-gray-300 hover:text-gray-500 dark:text-gray-600 dark:hover:text-gray-400 transition-colors duration-100"
|
||||
aria-label={$i18n.t('More')}
|
||||
on:pointerup|stopPropagation
|
||||
>
|
||||
<MoreHorizontalIcon className="size-3.5" strokeWidth="2" />
|
||||
</button>
|
||||
|
||||
@@ -754,6 +754,7 @@
|
||||
role="button"
|
||||
tabindex="0"
|
||||
on:click={async (e) => {
|
||||
e.stopPropagation();
|
||||
if (shouldIgnoreRowClick(e.target)) return;
|
||||
if (clickTimer) {
|
||||
clearTimeout(clickTimer);
|
||||
@@ -772,9 +773,6 @@
|
||||
openFolderHandler();
|
||||
}
|
||||
}}
|
||||
on:pointerup={(e) => {
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>
|
||||
<button
|
||||
class="text-gray-600 dark:text-gray-400 transition-all p-1 hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-lg"
|
||||
|
||||
@@ -131,8 +131,6 @@
|
||||
class="group flex flex-1 h-full items-center gap-1 text-left text-xs text-gray-400 hover:text-gray-500 dark:text-gray-500 dark:hover:text-gray-400 transition-colors duration-100 {buttonClassName}"
|
||||
aria-expanded={open}
|
||||
aria-controls="{id}-content"
|
||||
on:pointerup|stopPropagation
|
||||
on:click={() => setOpen(!open)}
|
||||
>
|
||||
<span>{name}</span>
|
||||
<span
|
||||
@@ -143,16 +141,16 @@
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<slot name="action" />
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events a11y-no-static-element-interactions -->
|
||||
<div class="contents" on:click={(e) => e.stopPropagation()}>
|
||||
<slot name="action" />
|
||||
</div>
|
||||
|
||||
{#if onAdd}
|
||||
<button
|
||||
type="button"
|
||||
class="flex items-center justify-center w-7 h-7 rounded-lg text-gray-300 hover:text-gray-500 dark:text-gray-600 dark:hover:text-gray-400 transition-colors duration-100"
|
||||
aria-label={onAddLabel}
|
||||
on:pointerup={(e) => {
|
||||
e.stopPropagation();
|
||||
}}
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
onAdd();
|
||||
|
||||
Reference in new issue
Block a user