mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
fix(app): blank lines in question marks story
This commit is contained in:
parent
7e69041391
commit
c0f40baa48
1 changed files with 2 additions and 0 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue