mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-09 06:44:41 +02:00
8f144c6e97
The console iframe lives inside a Bootstrap modal that is hidden on page load. While the modal is hidden the messages container has 0 height, so the scrollToBottom() that runs after loadOutputHistory() is a no-op. When the modal opens the container resizes to its real height but stays scrolled to the top. Watch the container with a ResizeObserver and scroll to the bottom whenever its height transitions from 0 to non-zero, so the transcript opens at the latest entry on first show and on every reopen. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>