fix(diff): prevent layout jitter on load (#5600)

The side-by-side diff showed estimated gutter positions while CodeMirror measured the panes and the divider caught up. Collapsed unchanged rows get their final height immediately, and the panes and divider appear together after the first layout measurement.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-24 21:10:16 +08:00
1 джерело 1a7bf6efdc
коміт 4a14efc168
4 files changed
+55 -2

No files matched your search

+4
Переглянути файл
@@ -355,6 +355,10 @@
.paneScroll :global(.cm-mergeViewEditor > .cm-editor > .cm-scroller) {
overflow: auto !important;
}
.measuringPanes {
opacity: 0;
}
.host :global(.cm-diffDivider) {
position: relative;
flex: none;