File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
src/Frontend/src/components Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ onBeforeUnmount(() => {
58
58
<template >
59
59
<div class =" code-editor-wrapper" >
60
60
<!-- Regular CodeEditor with maximize button in toolbarRight -->
61
- <CodeEditor v-model =" modelValue" :language =" language" :read-only =" readOnly" :show-gutter =" showGutter" :show-copy-to-clipboard =" showCopyToClipboard" :aria-label =" ariaLabel" :extensions =" extensions" >
61
+ <CodeEditor class = " maximazable-code-editor--inline-instance " v-model =" modelValue" :language =" language" :read-only =" readOnly" :show-gutter =" showGutter" :show-copy-to-clipboard =" showCopyToClipboard" :aria-label =" ariaLabel" :extensions =" extensions" >
62
62
<template #toolbarLeft >
63
63
<slot name =" toolbarLeft" ></slot >
64
64
</template >
@@ -76,7 +76,7 @@ onBeforeUnmount(() => {
76
76
<img class =" maximize-modal-close" :src =" DiffCloseIcon" alt =" Close" @click =" toggleMaximizeModal" title =" Close" />
77
77
</div >
78
78
<div class =" maximize-modal-body" >
79
- <CodeEditor v-model =" modelValue" :language =" language" :read-only =" readOnly" :show-copy-to-clipboard =" true" :show-gutter =" true" :aria-label =" ariaLabel" :extensions =" []" />
79
+ <CodeEditor class = " maximazable-code-editor--pop-up-instance " v-model =" modelValue" :language =" language" :read-only =" readOnly" :show-copy-to-clipboard =" true" :show-gutter =" true" :aria-label =" ariaLabel" :extensions =" []" />
80
80
</div >
81
81
</div >
82
82
</div >
Original file line number Diff line number Diff line change @@ -18,19 +18,14 @@ import TimeoutIcon from "@/assets/timeout.svg";
18
18
import EventIcon from " @/assets/event.svg" ;
19
19
import SagaTimeoutIcon from " @/assets/SagaTimeoutIcon.svg" ;
20
20
21
- // Define the monospace theme for CodeEditor
21
+ // Define monospace theme with specific selectors for this component
22
22
const monospaceTheme = EditorView .baseTheme ({
23
- " & " : {
23
+ " .maximazable-code-editor--inline-instance .cm-editor " : {
24
24
fontFamily: " monospace" ,
25
25
fontSize: " 0.75rem" ,
26
26
backgroundColor: " #f2f2f2" ,
27
27
},
28
- " .cm-editor" : {
29
- fontFamily: " monospace" ,
30
- fontSize: " 0.75rem" ,
31
- backgroundColor: " #f2f2f2" ,
32
- },
33
- " .cm-scroller" : {
28
+ " .maximazable-code-editor--inline-instance .cm-scroller" : {
34
29
backgroundColor: " #f2f2f2" ,
35
30
},
36
31
});
@@ -428,7 +423,7 @@ const hasStateChanges = computed(() => {
428
423
}
429
424
430
425
/* Override CodeEditor wrapper styles */
431
- .json-container :deep(.wrapper ) {
426
+ .json-container :deep(.wrapper.maximazable-code-editor--inline-instance ) {
432
427
border-radius : 0 ;
433
428
border : none ;
434
429
background-color : #f2f2f2 ;
You can’t perform that action at this time.
0 commit comments