Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(notifications): cap toast height so a long body can't push its close off-screen (#2138)

arookieofc7f62011a08be
diff --git a/src/ui/Feedback.module.css b/src/ui/Feedback.module.css
index 4702b5b66..921ad3d20 100644
--- a/src/ui/Feedback.module.css
+++ b/src/ui/Feedback.module.css
@@ -116,6 +116,8 @@
display: flex;
gap: 10px;
width: 340px;
+ /* Never grow past the window: the close button must stay reachable. */
+ max-height: calc(100vh - 48px);
padding: 14px 34px 14px 14px;
background: var(--bg-popup);
border: 1px solid var(--border-popup);
@@ -166,6 +168,10 @@
.toastBody {
color: var(--fg-secondary);
overflow-wrap: anywhere;
+ /* A huge message (stack trace, build output) scrolls inside the balloon instead
+ of growing past the window and pushing the close button off-screen. */
+ max-height: 40vh;
+ overflow: auto;
-webkit-user-select: text;
user-select: text;
}