()
| 971 | |
| 972 | // Chat window maximize/minimize functionality |
| 973 | function toggleMaximize() { |
| 974 | isChatMaximized = !isChatMaximized; |
| 975 | chatWindow.classList.toggle('maximized', isChatMaximized); |
| 976 | const iconMax = maximizeButton.querySelector('.icon-maximize'); |
| 977 | const iconMin = maximizeButton.querySelector('.icon-minimize'); |
| 978 | iconMax.style.display = isChatMaximized ? 'none' : 'block'; |
| 979 | iconMin.style.display = isChatMaximized ? 'block' : 'none'; |
| 980 | maximizeButton.setAttribute('aria-label', isChatMaximized ? 'Restore chat' : 'Maximize chat'); |
| 981 | } |
| 982 | |
| 983 | // Function to render markdown with mermaid diagrams |
| 984 | async function renderMarkdownWithMermaid(markdownText) { |
nothing calls this directly
no outgoing calls
no test coverage detected