From 7274285f95f0759755b748b52276068fa4ebf4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Feh=C3=A9r=20Roland?= Date: Tue, 14 Oct 2025 13:00:09 +0200 Subject: [PATCH] Change scroll behavior Only scroll the torrent list, not the whole document --- js/trweb.js | 2 +- style/trweb.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/trweb.js b/js/trweb.js index 670ec99..7dcc06b 100644 --- a/js/trweb.js +++ b/js/trweb.js @@ -65,7 +65,7 @@ class trweb { this.#logger('Activating TRWEB instance'); this.#container = document.getElementById(this.#container); - this.#container.classList.add('trweb_container'); + this.#container.classList.add('trweb_container', 'd-flex', 'flex-column', 'h-100'); this.#container.appendChild(this.#dom_menubar.element); this.#container.appendChild(this.#dom_torrentmanagger.element); this.#container.appendChild(this.#guiFooter); diff --git a/style/trweb.css b/style/trweb.css index 0bb6a4c..183d75f 100644 --- a/style/trweb.css +++ b/style/trweb.css @@ -1,5 +1,7 @@ .trweb_torrentlistview { background-color: cadetblue; + overflow-x: clip; + overflow-y: auto; } .trweb_torrentlistentry:nth-child(3n-1) { background-color: darkcyan;