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

Function syncCollapsedState

public/js/aiChat.js:472–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

470 };
471
472 const syncCollapsedState = () => {
473 if (scopeFieldsEl) {
474 scopeFieldsEl.style.display = scopeExpanded ? 'flex' : 'none';
475 }
476 if (toggleScopeEl) {
477 toggleScopeEl.textContent = scopeExpanded ? 'Hide scope' : 'Show scope';
478 }
479 if (recipeBodyEl) {
480 recipeBodyEl.style.display = recipesExpanded ? 'flex' : 'none';
481 }
482 if (toggleRecipesEl) {
483 toggleRecipesEl.textContent = recipesExpanded ? 'Hide recipes' : 'Show recipes';
484 }
485 if (tipsBodyEl) {
486 tipsBodyEl.style.display = tipsExpanded ? 'flex' : 'none';
487 }
488 if (toggleTipsEl) {
489 toggleTipsEl.textContent = tipsExpanded ? 'Hide tips' : 'Show tips';
490 }
491 };
492
493 const scrollLogToBottom = () => {
494 if (!logEl) return;

Callers 2

loadRecipesFunction · 0.85
createChatUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected