From dc18e0e1d3414466cf820288c5fdc69a55c4aa8a Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 28 Nov 2026 16:29:26 -0600 Subject: [PATCH] snug fits --- .../LoadoutConsumables/index.module.css | 5 +- .../TankopediaLoadout/index.module.css | 7 ++ .../[...locale]/tanks/[slug]/index.astro | 79 +++++++++++++++---- 3 files changed, 74 insertions(+), 17 deletions(-) diff --git a/packages/website/src/components/LoadoutConsumables/index.module.css b/packages/website/src/components/LoadoutConsumables/index.module.css index 2d2b46fae..909a1a5c6 100644 --- a/packages/website/src/components/LoadoutConsumables/index.module.css +++ b/packages/website/src/components/LoadoutConsumables/index.module.css @@ -1,6 +1,9 @@ .consumables { + width: 0; + min-width: 100%; + display: grid; - grid-template-columns: repeat(3, max-content); + grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: var(--space-3); .wrapper { diff --git a/packages/website/src/components/TankopediaLoadout/index.module.css b/packages/website/src/components/TankopediaLoadout/index.module.css index b604477a5..8898b479d 100644 --- a/packages/website/src/components/TankopediaLoadout/index.module.css +++ b/packages/website/src/components/TankopediaLoadout/index.module.css @@ -14,6 +14,13 @@ padding: var(--space-5); box-sizing: border-box; + @media (width < 44rem) { + background-color: transparent; + position: static; + max-height: none; + overflow-y: visible; + } + @media (pointer: coarse) { &[data-tabbed="false"] { display: none; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/index.astro index 1855f5cd9..717143a93 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/[slug]/index.astro @@ -34,21 +34,63 @@ const { id, locale } = Astro.props;