Change scroll behavior
Only scroll the torrent list, not the whole document
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user