Skip to content

The agent that grows with you

chore(website): drop the unreachable Categories toggle and dead control CSS

kshitijk4poor6c91f1b8ba06
diff --git a/website/src/pages/plugins/index.tsx b/website/src/pages/plugins/index.tsx
index 7bea1bfffad..c6899ab2cad 100644
--- a/website/src/pages/plugins/index.tsx
+++ b/website/src/pages/plugins/index.tsx
@@ -482,9 +482,6 @@ export default function PluginCatalogPage() {
return counts;
}, [allPlugins, tierFilter]);
- useEffect(() => {
- }, [search, tierFilter, categoryFilter]);
-
const clearAll = useCallback(() => {
setSearch("");
setTierFilter("all");
diff --git a/website/src/pages/plugins/styles.module.css b/website/src/pages/plugins/styles.module.css
index 77a160c6186..7b900d604e0 100644
--- a/website/src/pages/plugins/styles.module.css
+++ b/website/src/pages/plugins/styles.module.css
@@ -949,12 +949,7 @@
@media (max-width: 600px) {
.controlsBar {
- position: static;
display: contents;
- padding: 0;
- border-bottom: 0;
- backdrop-filter: none;
- background: transparent !important;
}
.controlsTopRow {
@@ -1016,9 +1011,8 @@
}
.compactSelect { display: none; }
- .compactSort { display: none; }
- .filterPanelOpen {
+ .filterPanel.filterPanelOpen {
display: block;
margin: 0 0.75rem 0.75rem;
padding: 0.75rem;
@@ -1029,12 +1023,11 @@
}
.filterPanelOpen .tierPills,
- .filterPanelOpen .categoryPills {
+ .filterPanelOpen .categoryPills,
+ .filterPanelOpen .sortPills {
justify-content: flex-start;
}
- .filterPanelOpen .sortPills { justify-content: flex-start; }
-
.clearBtn {
right: 0.25rem;
width: 44px;
diff --git a/website/src/pages/skills/index.tsx b/website/src/pages/skills/index.tsx
index 2398ce639d3..e6a1295168b 100644
--- a/website/src/pages/skills/index.tsx
+++ b/website/src/pages/skills/index.tsx
@@ -927,25 +927,6 @@ export default function SkillsDashboard() {
</div>
<div className={styles.layout}>
- <button
- className={styles.sidebarToggle}
- onClick={() => setSidebarOpen(!sidebarOpen)}
- >
- <svg viewBox="0 0 20 20" fill="currentColor" width="18" height="18">
- <path
- fillRule="evenodd"
- d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1z"
- clipRule="evenodd"
- />
- </svg>
- Categories
- {categoryFilter !== "all" && (
- <span className={styles.activeCatBadge}>
- {categoryEntries.find((c) => c.key === categoryFilter)?.label}
- </span>
- )}
- </button>
-
<aside
id="skills-directory-filters"
ref={filterDialogRef}
@@ -953,9 +934,6 @@ export default function SkillsDashboard() {
aria-modal={mobileFiltersActive && sidebarOpen ? true : undefined}
aria-labelledby="skills-directory-filters-title"
className={`${styles.sidebar} ${sidebarOpen ? styles.sidebarOpen : ""}`}
- onKeyDown={(e) => {
- if (mobileFiltersActive && sidebarOpen) e.stopPropagation();
- }}
>
<div className={styles.sidebarHeader}>
<h2 id="skills-directory-filters-title" className={styles.sidebarTitle}>Categories</h2>
diff --git a/website/src/pages/skills/styles.module.css b/website/src/pages/skills/styles.module.css
index 5b6b5a070b6..c302d353fa5 100644
--- a/website/src/pages/skills/styles.module.css
+++ b/website/src/pages/skills/styles.module.css
@@ -369,11 +369,6 @@
color: rgba(255, 215, 0, 0.6);
}
-.sidebarToggle {
- display: none;
-}
-
-
.main {
padding: 1.25rem 1.5rem 3rem;
min-width: 0;
@@ -905,14 +900,6 @@
display: none;
}
-.activeCatBadge {
- font-size: 0.72rem;
- padding: 0.1rem 0.4rem;
- border-radius: 3px;
- background: rgba(255, 215, 0, 0.1);
- color: rgba(255, 215, 0, 0.8);
-}
-
.controlsTopRow {
display: contents;
@@ -978,8 +965,7 @@
.sourcePills { display: none; }
.layout { grid-template-columns: 1fr; }
- .layout > .sidebar,
- .layout > .sidebarToggle { display: none; }
+ .layout > .sidebar { display: none; }
}
/* Below ~820px the uppercase labels leave no room for the select's own value. */
@@ -989,12 +975,7 @@
@media (max-width: 600px) {
.controlsBar {
- position: static;
display: contents;
- padding: 0;
- border-bottom: 0;
- backdrop-filter: none;
- background: transparent !important;
}
.controlsTopRow {
@@ -1151,27 +1132,6 @@
backdrop-filter: blur(4px);
}
- .sidebarToggle {
- display: flex;
- align-items: center;
- gap: 0.4rem;
- padding: 0.5rem 0.85rem;
- margin: 0 1rem 0.75rem;
- border: 1px solid rgba(255, 215, 0, 0.1);
- border-radius: 6px;
- background: rgba(255, 215, 0, 0.03);
- color: var(--ifm-font-color-secondary);
- font-family: "DM Sans", sans-serif;
- font-size: 0.82rem;
- cursor: pointer;
- transition: all 0.15s;
- }
-
- .sidebarToggle:hover {
- border-color: rgba(255, 215, 0, 0.2);
- color: var(--ifm-font-color-base);
- }
-
.hero {
padding: 2.5rem 1.25rem 1.75rem;
}