|
73 | 73 | <Separator orientation="horizontal" /> |
74 | 74 | {:else} |
75 | 75 | <div class="@container-scroll flex h-fit relative w-full md:sticky md:top-1/4 md:w-fit"> |
76 | | - <Tabs.List class="bg-transparent @stuck-top:bg-background/50 h-fit transition-colors duration-150"> |
| 76 | + <Tabs.List class="bg-transparent rounded-xl @stuck-top:bg-background/50 h-fit transition-colors duration-150"> |
77 | 77 | <ScrollArea class="h-144" orientation="vertical" type="auto" viewportClasses="scroll-fade-track-y rounded-xl rounded-br-none"> |
78 | 78 | <div class="flex flex-col gap-3 px-4 py-4"> |
79 | 79 | {@render inventoryTabItems(inventories, selectedTabName)} |
|
85 | 85 | </div> |
86 | 86 | {/if} |
87 | 87 |
|
88 | | - <Tabs.Content class="mx-auto sm:mt-4 sm:pt-4 w-full p-2 sm:p-0 md:mt-0 md:px-4" value={selectedTabName}> |
| 88 | + <Tabs.Content class="mx-auto sm:my-4 sm:py-4 w-full p-2 sm:p-0 md:my-0 md:px-4" value={selectedTabName}> |
89 | 89 | {#if selectedTabName === "Search"} |
90 | 90 | {#if uuid && profileId} |
91 | 91 | <InventorySearch bind:search={searchValue} {uuid} {profileId} {itemSnippet} /> |
|
123 | 123 | {/snippet} |
124 | 124 |
|
125 | 125 | {#snippet emptyItem()} |
126 | | - <div class="aspect-square rounded-sm bg-text/4"></div> |
| 126 | + <div class="aspect-square rounded-xl border bg-text/4"></div> |
127 | 127 | {/snippet} |
128 | 128 |
|
129 | 129 | {#snippet gap()} |
130 | | - <hr class="col-span-full h-4 border-0" /> |
| 130 | + <Separator class="col-span-full my-4" /> |
131 | 131 | {/snippet} |
132 | 132 |
|
133 | 133 | {#snippet multipleInventorySection(items: ModelsStrippedItem[], currentInventory: ModelsInventory)} |
|
139 | 139 | {#snippet child({ props })} |
140 | 140 | <div {...props}> |
141 | 141 | {#if item.texture_path} |
142 | | - <div class="relative flex aspect-square items-center justify-center rounded-sm group-data-[state=active]:bg-text/10 group-data-[state=inactive]:bg-text/4 data-[shine=true]:shine" data-shine={!preferences.performanceMode && shouldShine(item)}> |
| 142 | + <div class="relative flex aspect-square items-center justify-center rounded-xl border overflow-clip group-data-[state=active]:bg-text/10 group-data-[state=inactive]:bg-text/4 data-[shine=true]:shine" data-shine={!preferences.performanceMode && shouldShine(item)}> |
143 | 143 | {@render itemSnippet(item)} |
144 | 144 | </div> |
145 | 145 | {:else} |
|
151 | 151 | {/each} |
152 | 152 | {/if} |
153 | 153 | </Tabs.List> |
| 154 | + |
154 | 155 | {#if items?.length} |
155 | 156 | {#each items as item, index (index)} |
156 | 157 | <Tabs.Content value={index.toString()}> |
| 158 | + <div class="grid place-content-center gap-1 @md:gap-1.5 @xl:gap-2" {@attach animateObfuscatedText}> |
| 159 | + <div class="rounded-xl my-4 border bg-background/50 p-4"> |
| 160 | + {#if item?.lore} |
| 161 | + {#each item?.lore as lore, index (index)} |
| 162 | + {@html renderLore(lore)} |
| 163 | + {/each} |
| 164 | + {/if} |
| 165 | + </div> |
| 166 | + </div> |
157 | 167 | <div class="grid grid-cols-[repeat(9,minmax(1.875rem,4.875rem))] place-content-center gap-1 @md:gap-1.5 @xl:gap-2"> |
| 168 | + {@render gap()} |
158 | 169 | {#if item?.containsItems} |
159 | 170 | {#each item.containsItems as containedItem, index2 (index2)} |
160 | 171 | {#if index2 > 0} |
|
164 | 175 | {/if} |
165 | 176 | <Tabs.Content value={index.toString()}> |
166 | 177 | {#if containedItem.texture_path} |
167 | | - <div class="relative flex aspect-square items-center justify-center rounded-sm bg-text/4 data-[shine=true]:shine" data-shine={!preferences.performanceMode && shouldShine(item)}> |
| 178 | + <div class="relative flex aspect-square items-center justify-center rounded-xl border overflow-clip bg-text/4 data-[shine=true]:shine" data-shine={!preferences.performanceMode && shouldShine(item)}> |
168 | 179 | {@render itemSnippet(containedItem)} |
169 | 180 | </div> |
170 | 181 | {:else} |
|
174 | 185 | {/each} |
175 | 186 | {/if} |
176 | 187 | </div> |
177 | | - <div class="grid place-content-center gap-1 @md:gap-1.5 @xl:gap-2" {@attach animateObfuscatedText}> |
178 | | - <div class="rounded-xl my-4 border bg-background/50 p-4"> |
179 | | - {#if item?.lore} |
180 | | - {#each item?.lore as lore, index (index)} |
181 | | - {@html renderLore(lore)} |
182 | | - {/each} |
183 | | - {/if} |
184 | | - </div> |
185 | | - </div> |
186 | 188 | </Tabs.Content> |
187 | 189 | {/each} |
188 | 190 | {/if} |
|
0 commit comments