fix: OS gallery accordion auto-collapses other sections when one opens
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -335,8 +335,14 @@ function vfRenderOsGallery(container, data, hiddenInput) {
|
||||
|
||||
header.on("click", function () {
|
||||
var isVisible = grid.is(":visible");
|
||||
grid.slideToggle(200);
|
||||
arrow.html(isVisible ? '▶' : '▼');
|
||||
// Collapse all other categories
|
||||
$container.find(".vf-os-grid").slideUp(200);
|
||||
$container.find(".vf-os-category-arrow").html('▶');
|
||||
// Toggle this one
|
||||
if (!isVisible) {
|
||||
grid.slideDown(200);
|
||||
arrow.html('▼');
|
||||
}
|
||||
});
|
||||
|
||||
$.each(category.templates, function (ti, tpl) {
|
||||
|
||||
Reference in New Issue
Block a user