fix star hover issue

This commit is contained in:
Ruben Fiszel
2023-04-05 19:38:20 +02:00
parent 8f7a11b896
commit fb60768cf3
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
let buttonHover = false
async function onClick() {
buttonHover = false
if (starred) {
await FavoriteService.unstar({
workspace: workspace_id,
@@ -48,4 +49,4 @@
{:else}
<Star size={18} fill={buttonHover ? 'currentcolor' : 'none'} />
{/if}
</button>
</button>
@@ -320,7 +320,7 @@
{:else}
<div class="border rounded-md divide-y divide-gray-200">
<!-- <VirtualList {items} let:item bind:start bind:end> -->
{#each (items ?? []).slice(0, nbDisplayed) as item (item.type + '/' + item.path + (item.summary ?? ''))}
{#each (items ?? []).slice(0, nbDisplayed) as item (item.type + '/' + item.path)}
{#if item.type == 'script'}
<ScriptRow
bind:deleteConfirmedCallback