MCPcopy Create free account
hub / github.com/error311/FileRise / updateSidebarVisibility

Function updateSidebarVisibility

public/js/dragAndDrop.js:1105–1110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1103 return !!tz && tz.querySelectorAll('#uploadCard, #folderManagementCard').length > 0;
1104}
1105function updateSidebarVisibility() {
1106 const sb = getSidebar();
1107 if (!sb) return;
1108 const any = hasSidebarCards();
1109 sb.style.display = (isZonesCollapsed() || !any) ? 'none' : 'block';
1110}
1111function updateTopZoneLayout() {
1112 const top = getTopZone();
1113 const left = getLeftCol();

Callers 6

placeCardInZoneFunction · 0.85
enforceResponsiveZonesFunction · 0.85
setZonesCollapsedFunction · 0.85
makeCardDraggableFunction · 0.85
applyUserLayoutOrDefaultFunction · 0.85

Calls 3

getSidebarFunction · 0.85
hasSidebarCardsFunction · 0.85
isZonesCollapsedFunction · 0.85

Tested by

no test coverage detected