The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(website): keep the compact selects from overrunning their column
kshitijk4poor4a75fad06adb
diff --git a/website/src/pages/plugins/index.tsx b/website/src/pages/plugins/index.tsxindex c6899ab2cad..f855ad8180f 100644--- a/website/src/pages/plugins/index.tsx+++ b/website/src/pages/plugins/index.tsx@@ -29,6 +29,8 @@ import CopyButton from "../../components/PluginCatalog/CopyButton";// `static/api/` ends up at `/docs/api/` — same pattern as the Skills Hub.const PLUGINS_URL = "/docs/api/plugins.json";const META_URL = "/docs/api/plugins-meta.json";+/** Mirrors the `max-width: 600px` blocks in styles.module.css. */+const MOBILE_PANEL_QUERY = "(max-width: 600px)";const TIER_ORDER = ["all", "official", "community"];@@ -445,6 +447,17 @@ export default function PluginCatalogPage() {return () => cancelAnimationFrame(frame);}, [filtersOpen]);+ // The panel only exists in the mobile band, so leaving it should drop the+ // state too — otherwise `aria-expanded` stays "true" on a hidden toggle.+ useEffect(() => {+ const media = window.matchMedia(MOBILE_PANEL_QUERY);+ const sync = () => {+ if (!media.matches) setFiltersOpen(false);+ };+ media.addEventListener("change", sync);+ return () => media.removeEventListener("change", sync);+ }, []);+const allPlugins: CatalogPlugin[] = data?.plugins ?? [];const meta: CatalogMeta = data?.meta ?? {};diff --git a/website/src/pages/plugins/styles.module.css b/website/src/pages/plugins/styles.module.cssindex 7b900d604e0..c0a0de9dd97 100644--- a/website/src/pages/plugins/styles.module.css+++ b/website/src/pages/plugins/styles.module.css@@ -915,7 +915,9 @@display: flex;align-items: center;gap: 0.35rem;- min-width: 0;+ /* Hold the select's 7.5rem floor: without it the column shrinks below the+ select and the control overruns its neighbour. */+ min-width: 7.5rem;color: var(--ifm-color-emphasis-600);font-size: 0.68rem;text-transform: uppercase;diff --git a/website/src/pages/skills/styles.module.css b/website/src/pages/skills/styles.module.cssindex c302d353fa5..137cc2c489c 100644--- a/website/src/pages/skills/styles.module.css+++ b/website/src/pages/skills/styles.module.css@@ -940,7 +940,9 @@display: flex;align-items: center;gap: 0.35rem;- min-width: 0;+ /* Hold the select's 7.5rem floor: without it the column shrinks below the+ select and the control overruns its neighbour. */+ min-width: 7.5rem;color: var(--ifm-color-emphasis-600);font-size: 0.68rem;text-transform: uppercase;