v1.14.2-present: event schedules, venues and map blocks, Present mode and its phone remote #33

Merged
ngu-git-admin merged 40 commits from event-schedule into main 2026-11-21 23:02:06 +00:00
Showing only changes of commit 3aef3b1c34 - Show all commits

View file

@ -93,13 +93,14 @@ export default function ContentBlocks({
anchorPrefix?: string
}) {
const presenting = usePresenting()
// Presented, a block shown only on the page is left out and the
// rest take their Presentation text (095, 099); on the page, a block
// shown only in the presentation is.
// Presented, a block shown only on the page is left out, so is a
// divider (a slide has its own edges), and the rest take their
// Presentation text (095, 099); on the page, a block shown only in
// the presentation is.
if (blocks) {
blocks = presenting
? blocks
.filter((block) => !block.present?.hide)
.filter((block) => !block.present?.hide && block.type !== 'divider')
.map((block) => (block.present?.text ? { ...block, text: block.present.text } : block))
: blocks.filter((block) => !block.present?.only)
}