WebUI: Improve properties panel

It is now possible to expand & collapse it by clicking directly on tabs, just like in GUI.
In addition, collapse state is saved and applied on page load.
Fixed one minor bug and now files search input is properly hidden even when panel is collapsed.

PR #21209.
This commit is contained in:
skomerko 2024-08-24 08:09:10 +02:00 committed by GitHub
parent a91bac8aa0
commit fda797cb76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 73 additions and 97 deletions

View file

@ -334,7 +334,7 @@ window.qBittorrent.PropFiles ??= (() => {
let loadTorrentFilesDataTimer = -1;
const loadTorrentFilesData = function() {
if ($("prop_files").hasClass("invisible")
if ($("propFiles").hasClass("invisible")
|| $("propertiesPanel_collapseToggle").hasClass("panel-expand")) {
// Tab changed, don't do anything
return;