diff --git a/src/microsoft-trydotnet-editor/src/index.css b/src/microsoft-trydotnet-editor/src/index.css index 51780c633..eb86ca905 100644 --- a/src/microsoft-trydotnet-editor/src/index.css +++ b/src/microsoft-trydotnet-editor/src/index.css @@ -1,5 +1,10 @@ -body { - width: 800px; - height: 600px; +.body { + width: auto; + height: auto; border: 1px solid #ccc; + margin: 0; +} + +.monaco-editor { + padding: 0.5rem; } \ No newline at end of file diff --git a/src/microsoft-trydotnet/src/sessionFactory.ts b/src/microsoft-trydotnet/src/sessionFactory.ts index a5cf95474..6e30a1be5 100644 --- a/src/microsoft-trydotnet/src/sessionFactory.ts +++ b/src/microsoft-trydotnet/src/sessionFactory.ts @@ -27,10 +27,10 @@ async function _createSession(configuration: Configuration, editorIFrame: HTMLIF const computedStyle = window.getComputedStyle(editorIFrame); - const paddingLeft = parseFloat(computedStyle.paddingLeft) || 2; - const paddingRight = parseFloat(computedStyle.paddingRight) || 2; - const paddingTop = parseFloat(computedStyle.paddingTop) || 2; - const paddingBottom = parseFloat(computedStyle.paddingBottom) || 2; + const paddingLeft = parseFloat(computedStyle.paddingLeft) || 5; + const paddingRight = parseFloat(computedStyle.paddingRight) || 5; + const paddingTop = parseFloat(computedStyle.paddingTop) || 5; + const paddingBottom = parseFloat(computedStyle.paddingBottom) || 5; const borderLeft = parseFloat(computedStyle.borderLeftWidth) || 0; const borderRight = parseFloat(computedStyle.borderRightWidth) || 0;