From: Christian Heller Date: Mon, 16 Nov 2020 00:16:35 +0000 (+0100) Subject: In web client, enforce terminal size restrictions harder. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/todo?a=commitdiff_plain;h=4e31e852bd02aa77ce44f0ff8193ee6ca0552f58;p=plomrogue2 In web client, enforce terminal size restrictions harder. --- diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html index 0299d6c..d6e8a6e 100644 --- a/rogue_chat_nocanvas_monochrome.html +++ b/rogue_chat_nocanvas_monochrome.html @@ -968,7 +968,7 @@ tui.inputEl.addEventListener('keydown', (event) => { }, false); rows_selector.addEventListener('input', function() { - if (rows_selector.value % 4 != 0) { + if (rows_selector.value % 4 != 0 || rows_selector.value < 24) { return; } window.localStorage.setItem(rows_selector.id, rows_selector.value); @@ -976,7 +976,7 @@ rows_selector.addEventListener('input', function() { tui.full_refresh(); }, false); cols_selector.addEventListener('input', function() { - if (cols_selector.value % 4 != 0) { + if (cols_selector.value % 4 != 0 || cols_selector.value < 80) { return; } window.localStorage.setItem(cols_selector.id, cols_selector.value);