diff --git a/src/index.html b/src/index.html index e7ec03f..84dce89 100644 --- a/src/index.html +++ b/src/index.html @@ -1888,6 +1888,64 @@ .bookCountReadout { font-size: .82rem; color: var(--muted); white-space: nowrap; } + + /* Phase J1: hide reflow-entry tiles from the Pages overview โ€” + chapters now live in the dedicated Chapters tab. The data still + lives in book.pages for now (drag-reorder indices stay stable); + J2+ migrates them out into book.links / book.threads. */ + body.template-book #bookPagesView .bookPageTile.reflowSegment { + display: none !important; + } + + /* Chapters tab โ€” list view of every reflow / linked-chapter + entry in the book. Each row shows kind, label, source + (pinned event id or live coord), and per-row actions. */ + .bookChaptersList { + display: flex; flex-direction: column; gap: 8px; + margin-top: 10px; + } + .bookChapterRow { + display: grid; + grid-template-columns: auto 1fr auto; + gap: 10px; align-items: center; + padding: 10px 14px; + border: 1px solid var(--line); + border-radius: 6px; + background: var(--panel, #fff); + } + body.dark .bookChapterRow { background: rgba(255,255,255,.03); } + .bookChapterRow .bookChapterIcon { font-size: 1.2rem; opacity: .8; } + .bookChapterRow .bookChapterMeta { min-width: 0; } + .bookChapterRow .bookChapterTitle { + font-weight: 600; font-size: .92rem; + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + } + .bookChapterRow .bookChapterSub { + font-size: .72rem; color: var(--muted); + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + } + .bookChapterRow .bookChapterActions { + display: flex; gap: 6px; align-items: center; flex-wrap: wrap; + } + .bookChapterRow .bookChapterActions button { + font-size: .76rem; padding: 4px 10px; + } + .bookChapterPill { + display: inline-block; + font-size: .62rem; font-weight: 700; + letter-spacing: .06em; text-transform: uppercase; + padding: 1px 6px; border-radius: 3px; + vertical-align: middle; + margin-right: 4px; + } + .bookChapterPill.live { background: rgba(34,197,94,.18); color: #15803d; } + .bookChapterPill.pinned { background: rgba(245,158,11,.18); color: #92400e; } + .bookChapterPill.private { background: rgba(99,102,241,.18); color: #4338ca; } + .bookChapterEmpty { + padding: 24px; text-align: center; + color: var(--muted); font-size: .85rem; + border: 1px dashed var(--line); border-radius: 6px; + } .bookVisibilityChip { font-size: .76rem; padding: 2px 10px; border: 1px solid var(--line); background: #fff; @@ -4754,18 +4812,18 @@
- - + + + โ“˜ - 0 pages ยท 0 reflow + 0 pages ยท 0 chapters
- @@ -4773,7 +4831,17 @@
-

Click a designed-page tile to edit it on the canvas. Click a chapter tile to edit its markdown. PDF export is raster-only in v1 (real-text mode for embeddable fonts lands in a follow-up slice).

+

Click a designed-page tile to edit it on the canvas. Chapter text lives under the ๐Ÿ“Ž Chapters tab. PDF export is raster-only in v1 (real-text mode for embeddable fonts lands in a follow-up slice).

+
+