diff --git a/src/renderer/styles.css b/src/renderer/styles.css index 63f9345..5e3f1c2 100644 --- a/src/renderer/styles.css +++ b/src/renderer/styles.css @@ -3342,7 +3342,15 @@ textarea, .diff-output.image { padding: 0; background: var(--card); white-space: normal; } .diff-rows { - display: contents; + display: grid; + grid-template-columns: minmax(max-content, 1fr); + width: max-content; + min-width: 100%; +} + +.diff-output.text.is-wrapped .diff-rows { + grid-template-columns: minmax(0, 1fr); + width: 100%; } .markdown-preview-output { @@ -3520,8 +3528,8 @@ textarea, } .diff-hunk-block { - width: max-content; - min-width: 100%; + width: auto; + min-width: 0; margin: 10px 0; overflow: clip; border: 1px solid var(--diff-hunk-group-border);