Skip to content

Commit cc43680

Browse files
committed
fix: solve popup subview return damage
1 parent bc02c5d commit cc43680

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/ext/action-popup/App.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
let showUpdates = false;
2525
let updates = [];
2626
let main;
27-
let rowColors;
2827
let inactive = false;
2928
let platform;
3029
let initError;
@@ -601,7 +600,7 @@
601600
</div>
602601
{/if}
603602
</div>
604-
<div class="main {rowColors || ''}" bind:this={main}>
603+
<div class="main" bind:this={main}>
605604
{#if loading}
606605
<Loader abortClick={abortUpdates} {abort} />
607606
{:else if inactive}

src/ext/action-popup/Components/View.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
1414
function slide(node, params) {
1515
return {
16-
delay: params.delay || 0,
17-
duration: params.duration || 150,
18-
easing: params.easing || quintInOut,
16+
delay: params?.delay || 0,
17+
duration: params?.duration || 150,
18+
easing: params?.easing || quintInOut,
1919
css: (t) => `transform: translateX(${(t - 1) * 18}rem);`,
2020
};
2121
}

src/ext/action-popup/Components/Views/AllItemsView.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
export let allItemsToggleItem;
66
77
let disabled;
8-
let rowColorsAll;
8+
let rowColorsAll = "";
99
1010
$: list = allItems.sort((a, b) => a.name.localeCompare(b.name));
1111
@@ -14,12 +14,12 @@
1414
} else if (list.length > 1 && list.length % 2 !== 0) {
1515
rowColorsAll = "odd--all";
1616
} else {
17-
rowColorsAll = undefined;
17+
rowColorsAll = "";
1818
}
1919
</script>
2020

2121
{#if allItems.length}
22-
<div class="items view--all {rowColorsAll || ''}" class:disabled>
22+
<div class="items view--all {rowColorsAll}" class:disabled>
2323
{#each list as item (item.filename)}
2424
<PopupItem
2525
enabled={!item.disabled}

0 commit comments

Comments
 (0)