Fixed datapack overflow
This commit is contained in:
parent
0308b3c931
commit
1254db3963
@ -58,6 +58,7 @@ const DatapackTab = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="tab-content active datapack-tab-wrapper">
|
<div className="tab-content active datapack-tab-wrapper">
|
||||||
|
<MeteorRegion>
|
||||||
<div className="datapack-controls">
|
<div className="datapack-controls">
|
||||||
<div className="section-selector">
|
<div className="section-selector">
|
||||||
{sections.map((s) => (
|
{sections.map((s) => (
|
||||||
@ -83,7 +84,7 @@ const DatapackTab = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MeteorRegion className="datapack-content">
|
<div className="datapack-content">
|
||||||
<div className="datapack-grid">
|
<div className="datapack-grid">
|
||||||
{displayList.map((item) => (
|
{displayList.map((item) => (
|
||||||
<div
|
<div
|
||||||
@ -110,13 +111,14 @@ const DatapackTab = () => {
|
|||||||
<span className="card-name">{item.displayName}</span>
|
<span className="card-name">{item.displayName}</span>
|
||||||
<span className="card-id">{item.id}</span>
|
<span className="card-id">{item.id}</span>
|
||||||
|
|
||||||
{/* Секція луту без картинок, лише текст або іконка коробки */}
|
|
||||||
{activeSection === "hostiles" &&
|
{activeSection === "hostiles" &&
|
||||||
item.loot &&
|
item.loot &&
|
||||||
item.loot.length > 0 && (
|
item.loot.length > 0 && (
|
||||||
<div className="card-loot-preview">
|
<div className="card-loot-preview">
|
||||||
{item.loot.map((lootEntry, idx) => {
|
{item.loot.map((lootEntry, idx) => {
|
||||||
const lootData = GameDataManager.getItem(lootEntry.id);
|
const lootData = GameDataManager.getItem(
|
||||||
|
lootEntry.id,
|
||||||
|
);
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={`${item.id}-loot-${idx}`}
|
key={`${item.id}-loot-${idx}`}
|
||||||
@ -140,8 +142,8 @@ const DatapackTab = () => {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</MeteorRegion>
|
</MeteorRegion>
|
||||||
|
|
||||||
{selectedItem && (
|
{selectedItem && (
|
||||||
<DatapackDetailsModal
|
<DatapackDetailsModal
|
||||||
data={selectedItem}
|
data={selectedItem}
|
||||||
|
|||||||
Reference in New Issue
Block a user