fix(app): blank lines in question marks story

This commit is contained in:
Kit Langton 2026-10-28 10:00:00 -07:00
parent 7e69041391
commit c0f40baa48

View file

@ -60,11 +60,13 @@ function QuestionMarksPreview(props: MarksArgs) {
const [state, setState] = createStore({ revision: 0 })
// `?scheme=` pins a colour scheme for stills.
const url = new URLSearchParams(location.search)
const scheme = (): Scheme => {
const value = url.get("scheme")
return value === "dark" || value === "light" || value === "both" ? value : props.scheme
}
const schemes = () => (scheme() === "both" ? (["dark", "light"] as const) : [scheme()])
return (