Skip to content

Commit

Permalink
Fix: Resolve layout shrink issue of Monaco editor on handbook toggle (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SaeWooKKang authored Jun 24, 2024
1 parent a6882d5 commit 26343c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/playground/src/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const hideNavForHandbook = (sandbox: Sandbox) => {
if (!nav) return
if (!nav.classList.contains("handbook")) return

showCode(sandbox)
nav.style.display = "none"

const leftDrag = document.querySelector(".playground-dragbar.left") as HTMLElement
Expand All @@ -43,6 +42,8 @@ export const hideNavForHandbook = (sandbox: Sandbox) => {
const story = document.getElementById("editor-container")
const possibleButtonToRemove = story?.querySelector("button")
if (story && possibleButtonToRemove) story.removeChild(possibleButtonToRemove)

showCode(sandbox)
}

/**
Expand Down

0 comments on commit 26343c8

Please sign in to comment.