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:
@@ -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';
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user