@@ -3,7 +3,8 @@ import { SagaUpdateViewModel } from "./SagaDiagramParser";
3
3
import MessageDataBox from " ./MessageDataBox.vue" ;
4
4
import SagaOutgoingTimeoutMessage from " ./SagaOutgoingTimeoutMessage.vue" ;
5
5
import SagaOutgoingMessage from " ./SagaOutgoingMessage.vue" ;
6
- import DiffViewer from " @/components/messages2/DiffViewerV2.vue" ;
6
+ import DiffViewer from " @/components/messages2/DiffViewer.vue" ;
7
+ import CodeEditor from " @/components/CodeEditor.vue" ;
7
8
import { useSagaDiagramStore } from " @/stores/SagaDiagramStore" ;
8
9
import { ref , watch , computed } from " vue" ;
9
10
@@ -176,7 +177,7 @@ const hasStateChanges = computed(() => {
176
177
177
178
<!-- Initial state display -->
178
179
<div v-if =" update.IsFirstNode" class =" json-container" >
179
- <pre class = " json-view " >{{ stateDiff.formattedState }}</ pre >
180
+ <CodeEditor css = " monospace-code " :model-value = " stateDiff.formattedState || '' " language = " json " :showCopyToClipboard = " false " :showGutter = " false " / >
180
181
</div >
181
182
182
183
<!-- No changes message -->
@@ -392,17 +393,7 @@ const hasStateChanges = computed(() => {
392
393
}
393
394
394
395
.json-container {
395
- max-height : 300px ;
396
- overflow-y : auto ;
397
- background-color : #f8f8f8 ;
398
- }
399
- .json-view {
400
- margin : 0 ;
401
- padding : 8px ;
402
- white-space : pre-wrap ;
403
- font-family : monospace ;
404
- font-size : 0.75rem ;
405
- line-height : 1.4 ;
396
+ background-color : transparent ;
406
397
}
407
398
408
399
.no-changes-message {
@@ -412,6 +403,12 @@ const hasStateChanges = computed(() => {
412
403
color : #666 ;
413
404
}
414
405
406
+ /* Monospace font styling that matches DiffViewer */
407
+ :deep(.monospace-code ) .cm-editor {
408
+ font-family : monospace ;
409
+ font-size : 0.75rem ;
410
+ }
411
+
415
412
@-webkit-keyframes blink-border {
416
413
0% ,
417
414
100% {
0 commit comments