diff --git a/src/pages/homelab/index.astro b/src/pages/homelab/index.astro
index 8246393..7d2f108 100644
--- a/src/pages/homelab/index.astro
+++ b/src/pages/homelab/index.astro
@@ -32,6 +32,8 @@ import { services } from "./services.ts";
{
+ const categoryName = category.getAttribute('data-category');
+ const hasVisibleApps = Array.from(
+ category.querySelectorAll('.app-card')
+ ).some(card => card.style.display !== 'none');
+
+ // Show/hide the category based on whether it has visible apps
+ if (query === '' || hasVisibleApps) {
+ category.style.display = '';
+ } else {
+ category.style.display = 'none';
+ }
+ });
})
">
@@ -67,7 +84,7 @@ import { services } from "./services.ts";
{Object.entries(services).map(([category, apps], index) => (
-