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

Function adjustFolderHelpExpansion

public/js/upload.js:550–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548}
549
550function adjustFolderHelpExpansion() {
551 const uploadCard = document.getElementById("uploadCard");
552 const folderHelpDetails = document.querySelector(".folder-help-details");
553 if (uploadCard && folderHelpDetails) {
554 if (uploadCard.offsetHeight > 400) {
555 folderHelpDetails.setAttribute("open", "");
556 } else {
557 folderHelpDetails.removeAttribute("open");
558 }
559 }
560}
561
562function adjustFolderHelpExpansionClosed() {
563 const folderHelpDetails = document.querySelector(".folder-help-details");

Callers 1

processFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected