From 1cb1f8ac6a146971c262e826b7174c6cf4bf72db Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 27 Oct 2026 19:45:47 +0300 Subject: [PATCH] refactor(console): the console pages on Bootstrap classes instead of their own style blocks The console pages carried style blocks for what Bootstrap 5.3 has: - the page's column (flex, no padding, a #494949 background) is d-flex flex-column p-0 bg-dark; its height stays 100dvh inline, as vh-100 would run under a phone browser's bar; - the VNC screen and the serial terminal fill the rest with flex-grow-1, the screen overflow-hidden, the terminal bg-black; their min-height: 0 stays inline (Bootstrap has no class for it); - the rule centring the VNC canvas goes: noVNC centres its own canvas and draws its own background. The unused main_container id goes with its style block. --- console/templates/console-base.html | 22 ++-------------------- console/templates/console-vnc.html | 5 +---- console/templates/console-xterm.html | 5 +---- 3 files changed, 4 insertions(+), 28 deletions(-) diff --git a/console/templates/console-base.html b/console/templates/console-base.html index 28a27218..1629afae 100644 --- a/console/templates/console-base.html +++ b/console/templates/console-base.html @@ -12,32 +12,14 @@ {% with theme=app_settings.BOOTSTRAP_THEME|default:"zephyr" %}{% endwith %} - {% block head %}{% endblock %} -
+ {# the whole window, 100dvh: vh-100 would run under a phone browser's bar #} +