diff --git a/docs/preview.ts b/docs/preview.ts index dcc3487c..b64fa9bd 100644 --- a/docs/preview.ts +++ b/docs/preview.ts @@ -4,10 +4,11 @@ import { readTheme, schemeCss, schemeOf, themeCss } from "./play-theme.ts"; // The playground's preview is a document of its own, so the plugins' inlined scripts run as they do on a real page. // The build writes the first preset with it and the playground every edit after, with the Theme pane's scheme as a -// class on the root and its CSS in #play-theme, so a render doesn't flash the default theme. +// class on the root and its CSS in #play-theme, so a render doesn't flash the default theme. The body keeps 1rem, so +// annotate's marks and badges, which sit past a screenshot's edge, aren't cut off by the frame. export const previewDocument = (html: string, theme?: { scheme: string; css: string }) => `
` + - `` + + `` + `` + `