Skip to content

v0.2.5

Choose a tag to compare

@asm0dey asm0dey released this 15 May 21:27
· 147 commits to main since this release

Fixes

  • slidev-component: close the active question when the slide is navigated away from. Slidev keeps every slide mounted and switches the active one by toggling style="display: none" on the previous slide's .slidev-page. IntersectionObserver does not reliably deliver an entry for an element that becomes display:none (the spec leaves it implementation-defined and Chromium skips it), so a slide losing focus never produced an IO-leave event — the panel never posted /close and voters kept seeing the old poll prompt after the presenter moved on. PollPanel now watches the slide-page's style attribute with a MutationObserver and drives activate/close off the display transitions; IntersectionObserver is retained as a fallback for non-Slidev embeds. (7033c6a)
  • slidev-component: detect image backgrounds on the inner .slidev-layout. Slidev applies the frontmatter background: as an inline style on .slidev-layout (child of .slidev-page), not on the page itself. useSlidevTheme.hasImageBackground only looked at the page, so image-bg slides registered as plain and the panel rendered opaque against the photo — the scrim-dark / scrim-light mode never engaged. The detector now also checks the inner layout (and watches its style attribute for live bg swaps). (60aac45)

CI / release

  • ci(docker): multi-arch backend image via matrix + always tag latest. publish-backend fans out across native runners (ubuntu-latest for linux/amd64, ubuntu-24.04-arm for linux/arm64) and pushes each arch by digest only; a follow-up publish-backend-manifest job stitches the digests into a multi-arch manifest list under all tags. Every published image now also gets :latest in addition to the version-specific tags so consumers can pin to the current release without rewriting their compose file each cut. (66ef9f2)

Full Changelog: v0.2.4...v0.2.5