fix(run): expand multiline configuration fields in place (#5267)

Multiline run configuration fields now keep the Expand button inside the field. The larger editor opens next to the field so the configuration stays in view. It can be resized, scrolls long arguments horizontally, and applies edits through OK or Ctrl/⌘+Enter.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-23 09:16:39 +08:00
1 джерело 03a19d4284
коміт 43eeb080be
3 files changed
+153 -44

No files matched your search

+26 -10
Переглянути файл
@@ -922,28 +922,44 @@
outline: none;
}
.textareaWithButton {
display: flex;
align-items: flex-start;
gap: var(--space-1-5);
position: relative;
min-width: 0;
}
.textareaWithButton > textarea {
flex: 1;
min-width: 0;
display: block;
width: 100%;
padding-inline-end: calc(var(--space-3) + var(--space-4));
}
.textareaWithButton > button {
flex-shrink: 0;
position: absolute;
inset-block-start: var(--space-1);
inset-inline-end: var(--space-1);
}
.expandedEditor {
width: 512px;
height: 272px;
}
.expandedEditorBody {
display: flex;
flex-direction: column;
height: 100%;
padding: var(--space-2);
gap: var(--space-2);
}
/* One visual line per line of text: a long argument scrolls instead of wrapping. */
.expandedTextarea {
width: 100%;
height: 100%;
min-height: 160px;
box-sizing: border-box;
flex: 1;
min-height: 0;
resize: none;
white-space: pre;
overflow: auto;
}
.expandedEditorActions {
display: flex;
justify-content: flex-end;
flex: none;
gap: var(--space-2);
}
.textarea:focus {
box-shadow: inset 0 0 0 1px var(--focus-ring);
}