diff --git a/abogen/Dockerfile b/abogen/Dockerfile index 3c7d53b..c4b933e 100644 --- a/abogen/Dockerfile +++ b/abogen/Dockerfile @@ -35,7 +35,8 @@ RUN pip install --upgrade pip \ pip install torch torchvision torchaudio --index-url "$TORCH_INDEX_URL"; \ fi \ && pip install --no-cache-dir . \ - https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl + https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl \ + && pip install --no-cache-dir "mutagen>=1.47.0" ENV ABOGEN_HOST=0.0.0.0 \ ABOGEN_PORT=8808 diff --git a/abogen/web/static/dashboard.js b/abogen/web/static/dashboard.js index 1634a3d..f608fde 100644 --- a/abogen/web/static/dashboard.js +++ b/abogen/web/static/dashboard.js @@ -205,8 +205,9 @@ const initDashboard = () => { }); document.addEventListener("click", (event) => { - const target = event.target; - if (!(target instanceof Element)) { + const rawTarget = event.target; + const target = rawTarget instanceof Element ? rawTarget : rawTarget?.parentElement || null; + if (!target) { return; } diff --git a/abogen/web/static/styles.css b/abogen/web/static/styles.css index d30b78b..534b74b 100644 --- a/abogen/web/static/styles.css +++ b/abogen/web/static/styles.css @@ -1191,6 +1191,21 @@ body { cursor: pointer; transition: background 0.2s ease, color 0.2s ease; } +.prepare-wizard[data-speaker-step="disabled"] [data-step-key="speakers"] { + display: none; +} +.prepare-wizard[data-speaker-step="disabled"] [data-speaker-panel="true"] { + display: none !important; +} +.prepare-wizard[data-speaker-step="enabled"] [data-chapter-action="finalize"] { + display: none; +} +.prepare-wizard[data-speaker-step="disabled"] [data-chapter-action="continue"] { + display: none; +} +.prepare-wizard[data-speaker-step="disabled"] [data-chapter-action="finalize"] { + display: inline-flex; +} .field--file input[type="file"]:hover::file-selector-button, .field--file input[type="file"]:focus::file-selector-button,