1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00

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.
This commit is contained in:
catborise 2026-10-27 19:45:47 +03:00
parent e59870a660
commit 1cb1f8ac6a
3 changed files with 4 additions and 28 deletions

View file

@ -3,9 +3,6 @@
{% load static %}
{% block head %}
<style>
#screen { flex: 1 1 auto; min-height: 0; overflow: hidden; }
</style>
{{ vnc|json_script:"vnc-config" }}
{{ layouts|json_script:"keyboard-layouts" }}
<script type="module" src="{% static "js/console_vnc.js" %}"></script>
@ -66,7 +63,7 @@
{% endblock %}
{% block content %}
<div id="screen"></div>
<div id="screen" class="flex-grow-1 overflow-hidden" style="min-height: 0;"></div>
<textarea id="keyboard_input" class="visually-hidden" autocapitalize="off" autocomplete="off"
spellcheck="false" tabindex="-1" aria-label="{% trans "Keyboard" %}"></textarea>