MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / syncShellClasses

Function syncShellClasses

src/ui/shared/tool-shell.ts:42–48  ·  view source on GitHub ↗
(shell: HTMLElement | null, expanded: boolean)

Source from the content-addressed store, hash-verified

40}
41
42function syncShellClasses(shell: HTMLElement | null, expanded: boolean): void {
43 if (!shell) {
44 return;
45 }
46 shell.classList.toggle('expanded', expanded);
47 shell.classList.toggle('collapsed', !expanded);
48}
49
50export function createToolShellController(options: CreateToolShellControllerOptions): ToolShellController {
51 const { shell, toggleButton, initialExpanded, onToggle, onScrollAfterExpand, onRender } = options;

Callers 1

applyExpandedStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected