Skip to content

Load the resolution plugin's stylesheet (hasCSS was missing)#6

Merged
DmitrySharabin merged 1 commit into
mainfrom
load-missing-plugin-css
Jun 11, 2026
Merged

Load the resolution plugin's stylesheet (hasCSS was missing)#6
DmitrySharabin merged 1 commit into
mainfrom
load-missing-plugin-css

Conversation

@DmitrySharabin

@DmitrySharabin DmitrySharabin commented Jun 10, 2026

Copy link
Copy Markdown
Member

Problem

resolution/plugin.css exists but the plugin didn't export const hasCSS = true, so the core loader (which injects plugin.css only when module.hasCSS is truthy) skipped it. The explicit slide box (width/height from --v-width/--v-height), box-sizing, and margin: auto letterboxing never applied — the deck still scaled to fit via the plugin's JS zoom, so it looked roughly right, but the exact resolution box was missing.

Fix

export const hasCSS = true;, matching the other CSS-bearing plugins.

Verified (Playwright)

Core injects <link id="plugin-css-resolution">; the slide becomes a 1920×1080, box-sizing: border-box, margin: auto (centered) box (it filled the viewport before).

Related

Same class of bug, fixed per-plugin: timer (#5) and visible-keys (#7).

🤖 Generated with Claude Code

@DmitrySharabin DmitrySharabin deleted the load-missing-plugin-css branch June 10, 2026 19:40
resolution/plugin.css sets the explicit slide box (width/height from
--v-width/--v-height), box-sizing, and margin: auto letterboxing, but the
plugin didn't export `hasCSS`, so the core loader skipped it. The deck
still scaled to fit via the plugin's JS zoom, so it looked roughly right,
but the exact resolution box was never applied. Export hasCSS = true.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@DmitrySharabin DmitrySharabin force-pushed the load-missing-plugin-css branch from 26da8a3 to fac1d79 Compare June 10, 2026 19:47
@DmitrySharabin DmitrySharabin changed the title Load stylesheets for the resolution and visible-keys plugins Load the resolution plugin's stylesheet (hasCSS was missing) Jun 10, 2026
@DmitrySharabin DmitrySharabin merged commit 883faef into main Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants