Change scroll behavior

Only scroll the torrent list, not the whole document
This commit is contained in:
2025-10-14 13:00:09 +02:00
parent 1ed720d7d6
commit 7274285f95
2 changed files with 3 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ class trweb {
this.#logger('Activating TRWEB instance'); this.#logger('Activating TRWEB instance');
this.#container = document.getElementById(this.#container); 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_menubar.element);
this.#container.appendChild(this.#dom_torrentmanagger.element); this.#container.appendChild(this.#dom_torrentmanagger.element);
this.#container.appendChild(this.#guiFooter); this.#container.appendChild(this.#guiFooter);

View File

@@ -1,5 +1,7 @@
.trweb_torrentlistview { .trweb_torrentlistview {
background-color: cadetblue; background-color: cadetblue;
overflow-x: clip;
overflow-y: auto;
} }
.trweb_torrentlistentry:nth-child(3n-1) { .trweb_torrentlistentry:nth-child(3n-1) {
background-color: darkcyan; background-color: darkcyan;