diff --git a/modules/active_modifier.py b/modules/active_modifier.py index 815e185..ef0b7ba 100644 --- a/modules/active_modifier.py +++ b/modules/active_modifier.py @@ -26,7 +26,8 @@ class Module(ActiveModifier): self.skip_indexes = set() def on_new_playlist(self, playlist: list[Track], global_args: dict[str, str]): self.playlist = playlist - self.originals = [] + self.originals.clear() + self.skip_indexes.clear() self.crossfade = float(global_args.get("crossfade", DEFAULT_CROSSFADE)) if not self._imc: return diff --git a/modules/web/index.html b/modules/web/index.html index 9fe58e5..7737b6c 100644 --- a/modules/web/index.html +++ b/modules/web/index.html @@ -42,7 +42,7 @@ .btn.primary:hover { background:linear-gradient(90deg, #3399ee, #5bbaff); } ul.playlist{list-style:none; padding:6px; margin:0; font-family: "Consolas",monospace; font-size:13px;} - ul.playlist li{ padding:4px 6px; border-radius:6px; display:flex; justify-content:space-between; gap:8px; transition: background-color 0.2s ease, transform 0.15s ease; } + ul.playlist li{ padding:4px 6px; border-radius:6px; display:flex; justify-content:space -between; gap:8px; transition: background-color 0.2s ease, transform 0.15s ease; } ul.playlist li:hover{ background:rgba(255,255,255,0.04); } ul.playlist li.current{background:rgba(62,166,255,0.08)} ul.playlist li.selected{background:rgba(62, 165, 255, 0.305)} @@ -52,13 +52,11 @@ .listbox{ height:100%; - min-height:100px; overflow:auto; border-radius:6px; background:var(--card); padding:8px; font-size:14px; - scrollbar-width: none; } .listbox::-webkit-scrollbar { display: none; } @@ -66,14 +64,13 @@ .listbox div.item:hover{background:rgba(255,255,255,0.04); cursor:pointer} .listbox div.item.selected{background:rgba(62, 165, 255, 0.305)} - #section-playlist { flex: 2 1; } + #section-playlist { flex: 2 1; overflow: hidden;} #section-queue { flex: 1; display: flex; flex-direction: column; } #section-queue .collapsible-content { flex-grow: 1; } #section-queue.collapsed .collapsible-content { display: none; } #section-playlist.collapsed + #section-queue { flex: 1 1 auto !important; } .small{font-size:12px; color:var(--muted)} - .muted{color:var(--muted); font-size:13px} .footer{display:flex; justify-content:space-between; gap:5px; align-items:center; margin-top:8px; background:var(--panel); border-radius:10px; padding:8px; box-shadow: 0 8px 18px rgba(2,8,16,0.6);} .directory-grid { display: flex; @@ -114,7 +111,7 @@ #whep-section .collapsible-content { overflow: hidden; max-height: 200px; - transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); + transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1); } #whep-section.collapsed .collapsible-content { max-height: 0; } #whep-section.collapsed .frame-title::after { transform: rotate(90deg); } @@ -164,7 +161,6 @@ .layout{flex-direction: column; height: auto} .left{min-width:auto} .directory-grid {grid-template-columns: 1fr; height: auto; overflow: visible} - .listbox {min-height: 200px} button, .btn {padding: 10px 14px} .panel.right { height: auto; } #section-playlist, #section-queue { flex: 1 1 auto; } @@ -176,12 +172,13 @@