Skip to content

Commit 26343c8

Browse files
authored
Fix: Resolve layout shrink issue of Monaco editor on handbook toggle (microsoft#3164)
1 parent a6882d5 commit 26343c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/playground/src/navigation.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const hideNavForHandbook = (sandbox: Sandbox) => {
3434
if (!nav) return
3535
if (!nav.classList.contains("handbook")) return
3636

37-
showCode(sandbox)
3837
nav.style.display = "none"
3938

4039
const leftDrag = document.querySelector(".playground-dragbar.left") as HTMLElement
@@ -43,6 +42,8 @@ export const hideNavForHandbook = (sandbox: Sandbox) => {
4342
const story = document.getElementById("editor-container")
4443
const possibleButtonToRemove = story?.querySelector("button")
4544
if (story && possibleButtonToRemove) story.removeChild(possibleButtonToRemove)
45+
46+
showCode(sandbox)
4647
}
4748

4849
/**

0 commit comments

Comments
 (0)