Refactor social link icon handling to support file uploads; update display logic in welcome view for improved responsiveness and fallback for missing icons. Simplify category visibility toggling in JavaScript.

This commit is contained in:
Mekan1206
2026-06-06 13:30:57 +05:00
parent f73035593e
commit 36626fe779
3 changed files with 21 additions and 14 deletions

View File

@@ -28,11 +28,7 @@ function initCategoryPills() {
// Show matching container, hide others
containers.forEach((container) => {
if (container.dataset.categoryId === targetId) {
container.classList.remove('hidden');
} else {
container.classList.add('hidden');
}
container.style.display = container.dataset.categoryId === targetId ? '' : 'none';
});
});
});