This commit is contained in:
2026-05-11 00:32:08 +08:00
parent 10022ae048
commit b05276d9c7
@@ -354,7 +354,10 @@ const buildUniversalGrid = (source: IEquipment[]) => {
// Fallback to legacy stone layout when category keywords are not present. // Fallback to legacy stone layout when category keywords are not present.
if (!sections.length && source.length > 0) { if (!sections.length && source.length > 0) {
const legacySource = source.filter( const legacySource = source.filter(
(item) => item.suit.length > 1 || item.categorize.includes("套装") || item.categorize.includes("通宝"), (item) =>
item.suit.length > 1 ||
item.categorize.includes("套装") ||
item.categorize.includes("通宝"),
); );
const legacyGrid = buildSuitGrid(legacySource); const legacyGrid = buildSuitGrid(legacySource);
if (legacyGrid.some(Boolean)) { if (legacyGrid.some(Boolean)) {
@@ -824,7 +827,10 @@ const rarityChoices = [
</Tabs> </Tabs>
<template v-if="equipTab === 'suit'"> <template v-if="equipTab === 'suit'">
<div class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1" :style="iconWrapStyle"> <div
class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1"
:style="iconWrapStyle"
>
<button <button
v-for="item in suitOptions" v-for="item in suitOptions"
:key="item.id" :key="item.id"
@@ -930,7 +936,10 @@ const rarityChoices = [
</Tabs> </Tabs>
<template v-if="oathTab === 'suit'"> <template v-if="oathTab === 'suit'">
<div class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1" :style="iconWrapStyle"> <div
class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1"
:style="iconWrapStyle"
>
<button <button
v-for="item in suitOptions" v-for="item in suitOptions"
:key="`oath-${item.id}`" :key="`oath-${item.id}`"