mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-10-27 08:40:39 +00:00
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:
1 parent
6c33571329
commit
faa4849523
1 file changed
+10
-3
+10
-3
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user