|
185 | 185 | {/if}
|
186 | 186 | </CollapsibleSection>
|
187 | 187 |
|
188 |
| -{#snippet itemSnippet(item: ProcessedSkyBlockItem, index: number, tab?: { name: string; icon: string })} |
189 |
| - <Item piece={item} isInventory={true} showRecombobulated={false} showCount={true} inTransitionConfig={{ duration: 300, delay: 5 * (index + 1) }} {tab} /> |
| 188 | +{#snippet itemSnippet(item: ProcessedSkyBlockItem, tab?: { name: string; icon: string })} |
| 189 | + <Item piece={item} isInventory={true} showRecombobulated={false} showCount={true} {tab} /> |
190 | 190 | {/snippet}
|
191 | 191 |
|
192 | 192 | {#snippet emptyItem()}
|
|
203 | 203 | <p class="mx-auto w-fit leading-6">No items found.</p>
|
204 | 204 | {:else if searchValue !== ""}
|
205 | 205 | <div class="grid grid-cols-[repeat(9,minmax(1.875rem,4.875rem))] place-content-center gap-1 pt-5 @md:gap-1.5 @xl:gap-2">
|
206 |
| - {#each searchedItems as item, index} |
| 206 | + {#each searchedItems as item} |
207 | 207 | {#if item.item}
|
208 | 208 | <div class="bg-text/[0.04] flex aspect-square items-center justify-center rounded-sm">
|
209 |
| - {@render itemSnippet(item.item, index, item.sourceTab)} |
| 209 | + {@render itemSnippet(item.item, item.sourceTab)} |
210 | 210 | </div>
|
211 | 211 | {:else}
|
212 | 212 | {@render emptyItem()}
|
|
224 | 224 | <div use:builder.action {...builder} class="group">
|
225 | 225 | {#if item.texture_path}
|
226 | 226 | <div class="group-data-[state=active]:bg-text/10 group-data-[state=inactive]:bg-text/[0.04] flex aspect-square items-center justify-center rounded-sm">
|
227 |
| - {@render itemSnippet(item, index)} |
| 227 | + {@render itemSnippet(item)} |
228 | 228 | </div>
|
229 | 229 | {:else}
|
230 | 230 | {@render emptyItem()}
|
|
246 | 246 | <Tabs.Content value={index.toString()}>
|
247 | 247 | {#if containedItem.texture_path}
|
248 | 248 | <div class="bg-text/[0.04] flex aspect-square items-center justify-center rounded-sm">
|
249 |
| - {@render itemSnippet(containedItem, index2)} |
| 249 | + {@render itemSnippet(containedItem)} |
250 | 250 | </div>
|
251 | 251 | {:else}
|
252 | 252 | {@render emptyItem()}
|
|
271 | 271 | {#if item.texture_path}
|
272 | 272 | <div class="bg-text/[0.04] flex aspect-square items-center justify-center rounded-sm">
|
273 | 273 | {#if tab.id === "inv"}
|
274 |
| - {@render itemSnippet({ ...item, rarity: item.rarity ?? "uncommon" } as ProcessedSkyBlockItem, index)} |
| 274 | + {@render itemSnippet({ ...item, rarity: item.rarity ?? "uncommon" } as ProcessedSkyBlockItem)} |
275 | 275 | {:else}
|
276 |
| - {@render itemSnippet(item, index)} |
| 276 | + {@render itemSnippet(item)} |
277 | 277 | {/if}
|
278 | 278 | </div>
|
279 | 279 | {:else}
|
|
0 commit comments