Files
openidea/src/workbench/Notifications.module.css
T
l0ng-ai c871c164c1 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.
2026-11-16 18:40:53 +08:00

52 lines
1.1 KiB
CSS

.stack {
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);
display: flex;
flex-direction: column;
align-items: flex-end;
gap: var(--space-2);
pointer-events: none;
}
.balloon {
max-width: 100%;
pointer-events: auto;
animation: slideIn var(--dur) var(--ease);
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(12px);
}
}
@media (prefers-reduced-motion: reduce) {
.balloon {
animation: none;
}
}
.list {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: auto;
outline: none;
}
.entry {
width: 100%;
flex: none;
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
box-shadow: none;
background: none;
}
.entry:last-child {
border-bottom: 0;
}