From 387b39099f648c84da3d383ec1c902f4d7fd73ff Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Mon, 23 Mar 2026 13:37:43 +0100 Subject: [PATCH 1/2] Fix log viewer on small screens Previously it showed a lot of white space at the bottom, and the floating box didn't stick. Both is now fixed. AI-assistant: Copilot v1.0.7 (Claude Sonnet 4.6) Signed-off-by: Pablo Zmdl --- php/public/log-view.js | 2 +- php/templates/log.twig | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/php/public/log-view.js b/php/public/log-view.js index 992aa7dd..4814ea8e 100644 --- a/php/public/log-view.js +++ b/php/public/log-view.js @@ -96,7 +96,7 @@ class LogViewer { } scrollToBottom() { - window.scrollTo(0, document.body.scrollHeight); + this.logElem.scrollTop = this.logElem.scrollHeight; } initAutoloadingControls() { diff --git a/php/templates/log.twig b/php/templates/log.twig index 2fe3b1ce..d1d3f787 100644 --- a/php/templates/log.twig +++ b/php/templates/log.twig @@ -3,15 +3,25 @@ - +