diff --git a/frontend/src/index.css b/frontend/src/index.css index 338d07c..b7b5c18 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -412,10 +412,6 @@ label span { grid-template-columns: repeat(2, minmax(0, 1fr)); } -.firearms-stats { - grid-template-columns: repeat(3, minmax(0, 1fr)); -} - .mini-stat { border-radius: 22px; padding: 1.2rem 1.35rem; @@ -436,6 +432,9 @@ label span { .category-count-list { display: grid; gap: 0.55rem; + margin-top: 0.9rem; + padding-top: 0.9rem; + border-top: 1px solid rgba(171, 180, 140, 0.08); } .category-count-item { diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 0567cb5..c64accb 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -983,10 +983,20 @@ export default function Home() { {activeView !== 'settings' ? ( -
+
{activeView === 'ammo' ? 'Ammo types' : 'Firearms'} {activeView === 'ammo' ? ammoTypesWithRounds : data.summary.totalFirearms} + {activeView === 'firearms' ? ( +
+ {firearmCategoryCounts.map((item) => ( +
+ {item.category} + {item.count} +
+ ))} +
+ ) : null}
{activeView === 'ammo' ? 'Total rounds' : 'Total firearm value'} @@ -996,19 +1006,6 @@ export default function Home() { : currency.format(data.summary.firearmsInvestment)}
- {activeView === 'firearms' ? ( -
- Categories -
- {firearmCategoryCounts.map((item) => ( -
- {item.category} - {item.count} -
- ))} -
-
- ) : null}
) : null}