дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
fix(debugger): align the thread selector with the frames pane (#4961)
- Give the thread selector the width of the call stack header, with the standard workbench font and a fixed chevron at the trailing edge. - Show a leading icon for running, suspended, and breakpoint threads in both the header and the menu. Keep the status text in the menu and make the selected thread's full name and status available in the header tooltip and accessible description.
Цей коміт міститься в:
1 джерело
d507e67123
коміт
6b2b4a96e7
10 files changed
+124
-19
No files matched your search
@@ -42,7 +42,9 @@ export interface SelectProps<V extends string = string> {
|
||||
/** `ghost` renders as plain text + chevron (title bar widgets); `chip` as a chip that opens. */
|
||||
variant?: "framed" | "ghost" | "chip";
|
||||
className?: string;
|
||||
title?: string;
|
||||
"aria-label"?: string;
|
||||
"aria-description"?: string;
|
||||
/** Custom trigger content. */
|
||||
renderValue?: (option: SelectOption<V> | undefined) => ReactNode;
|
||||
/** Show a search box in the popup (useful for long option lists); typing on the closed trigger opens it with that text. */
|
||||
@@ -324,6 +326,7 @@ export function Select<V extends string = string>({
|
||||
disabled,
|
||||
variant = "framed",
|
||||
className,
|
||||
title,
|
||||
renderValue,
|
||||
searchable = false,
|
||||
onPreview,
|
||||
@@ -355,6 +358,8 @@ export function Select<V extends string = string>({
|
||||
aria-haspopup="listbox"
|
||||
aria-expanded={open}
|
||||
aria-label={given(aria["aria-label"])}
|
||||
aria-description={aria["aria-description"]}
|
||||
title={title}
|
||||
disabled={disabled}
|
||||
className={clsx(styles.trigger, styles[variant], className)}
|
||||
onClick={() => (open ? setOpen(false) : openPopup())}
|
||||
|
||||
@@ -480,6 +480,9 @@ const ICONS = {
|
||||
"stop-filled": "run/stop_stroke",
|
||||
resume: "run/resume",
|
||||
pause: "run/pause",
|
||||
"thread-running": "openidea/debugger/threadRunning",
|
||||
"thread-suspended": "openidea/debugger/threadSuspended",
|
||||
"thread-breakpoint": "openidea/debugger/threadBreakpoint",
|
||||
"step-over": "run/stepOver",
|
||||
"step-into": "run/stepInto",
|
||||
"step-out": "run/stepOut",
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M2.5 4.5h7m-7 3.5h4m-4 3.5h4" stroke="var(--fg-muted)" stroke-linecap="round"/>
|
||||
<circle cx="11.5" cy="9.5" r="3" fill="var(--danger)"/>
|
||||
</svg>
|
||||
|
Після Ширина: | Висота: | Розмір: 252 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M2.5 4.5h7m-7 3.5h4m-4 3.5h4" stroke="var(--fg-muted)" stroke-linecap="round"/>
|
||||
<path d="M9.5 6.5v6l5-3-5-3Z" fill="var(--success)"/>
|
||||
</svg>
|
||||
|
Після Ширина: | Висота: | Розмір: 250 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M2.5 4.5h7m-7 3.5h4m-4 3.5h4" stroke="var(--fg-muted)" stroke-linecap="round"/>
|
||||
<path d="M9.5 7v5m3-5v5" stroke="var(--fg)" stroke-width="1.5" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
Після Ширина: | Висота: | Розмір: 284 B |
Reference in new issue
Заблокувати користувача