fix(book): show page-edit bar in cover-edit mode + add Book/Meme/Other categories

- The bookPageEditBar CSS only matched .editing-book-page, so the bar
  (Back / Publish / Proof / Cover JSON) was completely hidden while
  editing the cover. Added .editing-book-cover to the selector so the
  bar shows in both modes.
- Back button label is now '✓ Done — back to Cover view' with a tooltip
  that says changes are autosaved. The old 'Back to Cover view' label
  hid the fact that work persists automatically.
- mediaCategories: added 'Book', 'Meme', 'Other'.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.7 committed 2026-06-04 14:54:59 -04:00
1 parent 6c33571329
commit faa4849523
1 file changed
+10 -3
+10 -3
View File
@@ -1851,7 +1851,8 @@
box-shadow: 0 6px 20px rgba(15,23,42,.18);
font-size: .82rem;
}
body.template-book.editing-book-page #bookPageEditBar { display: flex; }
body.template-book.editing-book-page #bookPageEditBar,
body.template-book.editing-book-cover #bookPageEditBar { display: flex; }
#bookPageEditBack {
border: 0; background: var(--accent); color: #fff;
cursor: pointer; border-radius: 999px;
@@ -12494,7 +12495,10 @@
if (pubStatus) pubStatus.textContent = '';
if (editingCover) {
if (label) label.textContent = 'Cover spread';
if (back) back.textContent = '← Back to Cover view';
if (back) {
back.textContent = '✓ Done — back to Cover view';
back.title = 'Your changes are autosaved. Click to return to the cover summary.';
}
if (prev) prev.style.display = 'none';
if (next) next.style.display = 'none';
if (tfBtn) tfBtn.style.display = 'none';
@@ -12945,7 +12949,10 @@
{ value: 'custom-art', label: 'Custom art' },
{ value: 'slide', label: 'Slide design' },
{ value: 'slide-deck', label: 'Slide deck' },
{ value: 'pixel-art', label: 'Pixel art' }
{ value: 'pixel-art', label: 'Pixel art' },
{ value: 'book', label: 'Book' },
{ value: 'meme', label: 'Meme' },
{ value: 'other', label: 'Other' }
];
const DEFAULT_NOSTR_RELAYS = [