fix(ui): editor hints and balloons stay inside the window (#3738)

An editor hint is the tooltip element itself, so the editor theme's .cm-tooltip max-width (same specificity, loaded later) replaced its 480 px limit and long messages ran past the window edge; the limit now applies to .cm-tooltip.cm-lsp-hint. The balloon stack keeps 16 px from the left as well and balloons narrow to fit, so they are no longer cut off in a narrow window.
This commit is contained in:
l0ng-ai
2026-11-16 18:40:53 +08:00
committed by GitHub
parent db65b12afe
commit c871c164c1
3 changed files with 6 additions and 1 deletions
+3
View File
@@ -2,6 +2,8 @@
position: fixed;
/* Inside the editor island's bottom-right corner, clear of the right stripe. */
right: 78px;
/* A narrow window narrows the balloons instead of pushing them off its left edge. */
left: 16px;
bottom: calc(var(--h-statusbar) + 16px);
/* Balloons belong to the main window: modal dialogs cover them, like IDEA. */
z-index: calc(var(--z-dialog) - 1);
@@ -12,6 +14,7 @@
pointer-events: none;
}
.balloon {
max-width: 100%;
pointer-events: auto;
animation: slideIn var(--dur) var(--ease);
}