diff --git a/packages/vite/src/client/overlay.ts b/packages/vite/src/client/overlay.ts index cb9ec0fefe6f8b..17dbf00de7a288 100644 --- a/packages/vite/src/client/overlay.ts +++ b/packages/vite/src/client/overlay.ts @@ -44,10 +44,11 @@ const template = /*html*/ ` .window { font-family: var(--monospace); line-height: 1.5; - width: 800px; + max-width: 80vw; color: var(--window-color); + box-sizing: border-box; margin: 30px auto; - padding: 25px 40px; + padding: 2.5vh 4vw; position: relative; background: var(--window-background); border-radius: 6px 6px 8px 8px;