GeezerVison is showing github.com — tui: keep patch tool counts visible with long filenames (#18678) · junmediatek/opencode@40e49c5
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/ui/src/components
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/ui/src/components/basic-tool.css +14-1Lines changed: 14 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | justify-content: flex-start; |
9 | 9 |
|
10 | 10 | [data-slot="basic-tool-tool-trigger-content"] { |
| 11 | + flex: 0 1 auto; |
11 | 12 | width: auto; |
| 13 | + max-width: calc(100% - 24px); |
| 14 | + min-width: 0; |
12 | 15 | display: flex; |
13 | 16 | align-items: center; |
14 | 17 | align-self: stretch; |
|
51 | 54 | [data-slot="basic-tool-tool-info"] { |
52 | 55 | flex: 0 1 auto; |
53 | 56 | min-width: 0; |
| 57 | + max-width: 100%; |
54 | 58 | font-size: 14px; |
55 | 59 | } |
56 | 60 |
|
57 | 61 | [data-slot="basic-tool-tool-info-structured"] { |
| 62 | + flex: 0 1 auto; |
58 | 63 | width: auto; |
59 | | - display: flex; |
| 64 | + max-width: 100%; |
| 65 | + min-width: 0; |
| 66 | + display: inline-flex; |
60 | 67 | align-items: center; |
61 | 68 | gap: 8px; |
62 | 69 | justify-content: flex-start; |
|
151 | 158 | letter-spacing: var(--letter-spacing-normal); |
152 | 159 | color: var(--text-base); |
153 | 160 | } |
| 161 | + |
| 162 | + [data-slot="basic-tool-tool-action"] { |
| 163 | + display: inline-flex; |
| 164 | + align-items: center; |
| 165 | + flex-shrink: 0; |
| 166 | + } |
154 | 167 | } |
Collapse file
Copy file name to clipboardExpand all lines: packages/ui/src/components/basic-tool.tsx +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -174,7 +174,9 @@ export function BasicTool(props: BasicToolProps) { |
174 | 174 | </Show> |
175 | 175 | </Show> |
176 | 176 | </div> |
177 | | - <Show when={!pending() && trigger().action}>{trigger().action}</Show> |
| 177 | + <Show when={!pending() && trigger().action}> |
| 178 | + <span data-slot="basic-tool-tool-action">{trigger().action}</span> |
| 179 | + </Show> |
178 | 180 | </div> |
179 | 181 | )} |
180 | 182 | </Match> |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/ui/src/components/message-part.css +15-3Lines changed: 15 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
424 | 424 | display: flex; |
425 | 425 | align-items: center; |
426 | 426 | justify-content: space-between; |
427 | | - gap: 8px; |
| 427 | + gap: 12px; |
428 | 428 | width: 100%; |
429 | 429 |
|
430 | 430 | [data-slot="message-part-title-area"] { |
|
436 | 436 | } |
437 | 437 |
|
438 | 438 | [data-slot="message-part-title"] { |
439 | | - flex-shrink: 0; |
| 439 | + flex: 1 1 auto; |
440 | 440 | display: flex; |
441 | 441 | align-items: center; |
442 | 442 | gap: 8px; |
| 443 | + min-width: 0; |
443 | 444 | font-family: var(--font-family-sans); |
444 | 445 | font-size: 14px; |
445 | 446 | font-style: normal; |
|
466 | 467 | } |
467 | 468 |
|
468 | 469 | [data-slot="message-part-title-text"] { |
| 470 | + flex-shrink: 0; |
469 | 471 | text-transform: capitalize; |
470 | 472 | color: var(--text-strong); |
471 | 473 | } |
472 | 474 |
|
473 | 475 | [data-slot="message-part-title-filename"] { |
474 | 476 | /* No text-transform - preserve original filename casing */ |
| 477 | + min-width: 0; |
| 478 | + overflow: hidden; |
| 479 | + text-overflow: ellipsis; |
| 480 | + white-space: nowrap; |
475 | 481 | font-weight: var(--font-weight-regular); |
476 | 482 | } |
477 | 483 |
|
|
501 | 507 | gap: 16px; |
502 | 508 | align-items: center; |
503 | 509 | justify-content: flex-end; |
| 510 | + flex-shrink: 0; |
504 | 511 | } |
505 | 512 | } |
506 | 513 |
|
|
1183 | 1190 | display: flex; |
1184 | 1191 | flex-grow: 1; |
1185 | 1192 | min-width: 0; |
| 1193 | + overflow: hidden; |
1186 | 1194 | } |
1187 | 1195 |
|
1188 | 1196 | [data-slot="apply-patch-directory"] { |
|
1196 | 1204 |
|
1197 | 1205 | [data-slot="apply-patch-filename"] { |
1198 | 1206 | color: var(--text-strong); |
1199 | | - flex-shrink: 0; |
| 1207 | + flex: 1 1 auto; |
| 1208 | + min-width: 0; |
| 1209 | + overflow: hidden; |
| 1210 | + text-overflow: ellipsis; |
| 1211 | + white-space: nowrap; |
1200 | 1212 | } |
1201 | 1213 |
|
1202 | 1214 | [data-slot="apply-patch-trigger-actions"] { |
|