diff --git a/CHANGELOG.md b/CHANGELOG.md index 252a9d9..94ae2fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi --- +## [1.26.14] — 2026-09-10 + +### Added +- **Studio-Style Side-by-Side Magazine Upload Layout.** + - Re-designed the Magazine upload card to mirror Studio mode's side-by-side layout: left panel contains optional Title & Issue metadata inputs plus a prominent **Durchsuchen** button (` Durchsuchen`), and right panel contains the clean `.reader-dropzone`. + - Removed the redundant `+ Add magazine` button for a clean, direct, one-action upload flow. + +--- + ## [1.26.13] — 2026-09-10 ### Fixed diff --git a/VERSION b/VERSION index 616b3aa..f38d4cf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.26.13 +1.26.14 diff --git a/static/css/audiobook.css b/static/css/audiobook.css index cddf5da..a1f39d1 100644 --- a/static/css/audiobook.css +++ b/static/css/audiobook.css @@ -180,29 +180,17 @@ color: var(--subtext); font-size: 12px; } -#s-reader .reader-source-grid { +#s-reader .reader-source-grid, +#s-caststudio .reader-source-grid, +#s-magazine .reader-source-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 12px; align-items: stretch; } -#s-caststudio .reader-source-grid { - display: grid; - grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); - gap: 12px; - align-items: stretch; -} -#s-reader .reader-paste-panel { - min-width: 0; - display: flex; - flex-direction: column; - gap: 8px; - padding: 12px; - border: 1px solid var(--border); - border-radius: 8px; - background: var(--surface); -} -#s-caststudio .reader-paste-panel { +#s-reader .reader-paste-panel, +#s-caststudio .reader-paste-panel, +#s-magazine .reader-paste-panel { min-width: 0; display: flex; flex-direction: column; @@ -409,8 +397,9 @@ } @media (max-width: 860px) { - #s-reader .reader-source-grid { grid-template-columns: 1fr; } - #s-caststudio .reader-source-grid { grid-template-columns: 1fr; } + #s-reader .reader-source-grid, + #s-caststudio .reader-source-grid, + #s-magazine .reader-source-grid { grid-template-columns: 1fr; } #s-reader .reader-tuning-row { grid-template-columns: 1fr; gap: 5px; } #s-caststudio .reader-tuning-row { grid-template-columns: 1fr; gap: 5px; } } diff --git a/static/js/magazine.js b/static/js/magazine.js index df60dd2..8b878af 100644 --- a/static/js/magazine.js +++ b/static/js/magazine.js @@ -205,7 +205,7 @@ function magShowDroppedFile(file) { } else { if (dropzone) dropzone.classList.remove('is-selected', 'is-uploading'); if (noteEl) noteEl.textContent = MAG_DROPZONE_DEFAULT_NOTE; - if (titleEl) titleEl.textContent = 'Drop a PDF or click to browse'; + if (titleEl) titleEl.textContent = 'Drop a PDF document'; if (iconEl) iconEl.className = 'mdi mdi-cloud-upload-outline reader-dropzone-icon'; } } @@ -306,6 +306,7 @@ async function magCreate(droppedFile = null) { const issue = ($('mag-new-issue')?.value || '').trim(); const addBtn = $('mag-add-btn'); + const browseBtn = $('mag-browse-btn'); const dropzone = $('mag-dropzone'); const titleInp = $('mag-new-title'); const issueInp = $('mag-new-issue'); @@ -325,6 +326,7 @@ async function magCreate(droppedFile = null) { } if (progress) progress.hidden = false; if (pickBtn) pickBtn.hidden = true; + if (browseBtn) browseBtn.hidden = true; if (iconEl) iconEl.className = 'mdi mdi-loading mdi-spin reader-dropzone-icon'; if (titleEl) titleEl.textContent = 'Uploading & Ingesting PDF...'; if (noteEl) noteEl.textContent = `Processing "${file.name}" (${sizeMb} MB). Transferring source file and extracting layout...`; @@ -341,6 +343,7 @@ async function magCreate(droppedFile = null) { } if (progress) progress.hidden = true; if (pickBtn) pickBtn.hidden = false; + if (browseBtn) browseBtn.hidden = false; if (addBtn) { addBtn.disabled = false; addBtn.innerHTML = origBtnText; diff --git a/static/sections/s-magazine.html b/static/sections/s-magazine.html index 21e0cfb..e56f677 100644 --- a/static/sections/s-magazine.html +++ b/static/sections/s-magazine.html @@ -10,30 +10,39 @@