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
9 changed files with 73 additions and 97 deletions

View File

@@ -42,7 +42,7 @@ window.qBittorrent.PropTrackers ??= (() => {
let loadTrackersDataTimer = -1;
const loadTrackersData = function() {
if ($("prop_trackers").hasClass("invisible")
if ($("propTrackers").hasClass("invisible")
|| $("propertiesPanel_collapseToggle").hasClass("panel-expand")) {
// Tab changed, don't do anything
return;