From 193d519bd0b64fab3d0283a8e78711b6b4273426 Mon Sep 17 00:00:00 2001 From: randogoth Date: Sun, 26 Oct 2025 22:40:05 +0200 Subject: [PATCH] inset fix --- compose.yml | 1 + scripts/dos-httpd | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index ecf4169..b719fff 100644 --- a/compose.yml +++ b/compose.yml @@ -17,6 +17,7 @@ services: TELNET_LOGIN: /bin/login ENABLE_HTTP_CONSOLE: ${ENABLE_HTTP_CONSOLE:-1} DOS_HTTP_PORT: ${DOS_HTTP_PORT:-8080} + DOS_HTTP_CRT: 0 volumes: - ./allowed_repo:/opt/allowed_repo:z - ./config/dos_allowed:/etc/dos_allowed:ro,z diff --git a/scripts/dos-httpd b/scripts/dos-httpd index fc884d1..201fc69 100644 --- a/scripts/dos-httpd +++ b/scripts/dos-httpd @@ -118,7 +118,7 @@ HTML_PAGE = """ .crt-display::after { content: ""; position: absolute; - inset: -8%; + inset: -0.1%; pointer-events: none; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.75) 100%); mix-blend-mode: multiply; @@ -172,7 +172,7 @@ HTML_PAGE = """ const CHAR_HEIGHT = 16; const VIEWPORT_WIDTH = 640; const VIEWPORT_HEIGHT = 400; - const BASE_VERTICAL_STRETCH = CRT_ENABLED ? 1.2 : 1; + const BASE_VERTICAL_STRETCH = 1.2; const TARGET_ROW_HEIGHT = VIEWPORT_HEIGHT / ROWS; const terminalHost = document.getElementById("terminal");