Compare commits

...
Author SHA1 Message Date
l0ng-ai c6beb1cfb9 fix(terminal): keep the terminal from sliding sideways while composing
xterm places its input textarea and IME composition at the cursor. A TUI that
leaves the cursor in the last column (pi draws its own cursor) pushes them past
the right edge, and Chromium (WebView2) scrolls the clipping pane to keep the
caret visible, so the whole terminal slid sideways while typing with an IME.
The xterm element now clips its overflow, which keeps it out of every
ancestor's scrollable area.
2026-11-18 23:02:29 +08:00
+8
View File
@@ -7,6 +7,14 @@
white-space: pre;
}
/* xterm places its input textarea and IME composition at the cursor. A program that leaves the
cursor in the last column (pi, other TUIs drawing their own cursor) pushes them past the edge,
and Chromium (WebView2) then scrolls the clipping pane to keep the caret in view: the whole
terminal slides sideways while composing. `clip` keeps that overflow out of every ancestor. */
.xterm {
overflow: clip;
}
/* An icon or fallback symbol wider than its cell stays over the next cell's background
(domRowCache), while selected spans keep xterm's `.xterm-decoration-top` z-index (2). */
.xterm .xterm-rows .openidea-terminal-icon:not(.xterm-decoration-top) {