Sometimes the log/stacktrace is pretty wide, and when I expand it, I cannot collapse it without scrolling sideways, because the button moves out of the visible area (and it's on a 1920px wide screen)

I suggest wrapping the stack trace in a separate element and overflow:auto it, so the main layout doesn't expand more than needed.