Commit 704a15e
authored
remove spacing around the preview iframe
This is so that examples can use the whole iframe. Otherwise, if a playground has code like
```js
document.querySelector('head').innerHTML += `<style>
html, body, #app {
width: 100%;
height: 100%;
padding: 0;
}
</style>`;
```
then an amount of content (equal to the padding) will stick beyond the bottom edge of the preview. The `block` display prevents vertical displacement due to some font configurations for inline-block elements, and we're not rendering the canvas within text.1 parent fd2b3f6 commit 704a15e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments