diff --git a/ui/src/components/DocumentDiffModal.tsx b/ui/src/components/DocumentDiffModal.tsx index b85defa5..77286ffe 100644 --- a/ui/src/components/DocumentDiffModal.tsx +++ b/ui/src/components/DocumentDiffModal.tsx @@ -72,49 +72,51 @@ export function DocumentDiffModal({ return ( - - - - Diff — {documentKey} - - + +
+ + + Diff — {documentKey} + + -
-
- Left: - -
-
- Right: - +
+
+ Old + +
+
+ New + +
@@ -155,9 +157,18 @@ export function DocumentDiffModal({ }, }, contentText: { - fontFamily: "inherit", - fontSize: "13px", - lineHeight: "1.6", + fontFamily: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace", + fontSize: "12px", + lineHeight: "1.5", + wordBreak: "break-word" as const, + whiteSpace: "pre-wrap" as const, + }, + gutter: { + minWidth: "40px", + whiteSpace: "nowrap" as const, + }, + line: { + wordBreak: "break-word" as const, }, }} />