Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 252d4ca

Browse files
fix: monaco editor overflow styling
Signed-off-by: peterpeterparker <[email protected]>
1 parent 488b752 commit 252d4ca

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

studio/src/app/modals/editor/app-code-editor/app-code-editor.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
app-code-editor {
22
@import "../../../../global/theme/editor/editor-modal";
33

4+
main {
5+
height: 100%;
6+
background: var(--ion-color-light);
7+
}
8+
49
deckgo-monaco-editor {
510
border: 1px solid #dedede;
611
display: block;

studio/src/app/modals/editor/app-code-editor/app-code-editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ export class AppCodeEditor implements ComponentInterface {
7979
</ion-toolbar>
8080
</ion-header>
8181

82-
<ion-content class="ion-padding">
82+
<main class="ion-padding">
8383
<deckgo-monaco-editor ref={(el: HTMLDeckgoMonacoEditorElement | null) => (this.codeEditor = el)} options={this.options}>
8484
<code innerHTML={this.code}></code>
8585
</deckgo-monaco-editor>
86-
</ion-content>
86+
</main>
87+
8788
<ion-footer>
8889
<ion-toolbar>
8990
<div class="ion-padding-bottom">

studio/src/global/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@
2929
@import "theme/error";
3030
@import "theme/item";
3131
@import "theme/print";
32+
@import "theme/monaco";

studio/src/global/theme/monaco.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body > div.monaco-aria-container {
2+
display: none;
3+
}

0 commit comments

Comments
 (0)