@elumixor/devkit 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dev/board.tsx +18 -11
package/package.json
CHANGED
package/src/dev/board.tsx
CHANGED
|
@@ -314,21 +314,28 @@ function Board({ supervisor, title }: { readonly supervisor: Supervisor; readonl
|
|
|
314
314
|
{lines.map((line) => {
|
|
315
315
|
const mark = markOf(line.seq);
|
|
316
316
|
return (
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
{
|
|
320
|
-
<Text color=
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
317
|
+
// One row each, the label and gutter never shrinking: a long row is cut, not wrapped.
|
|
318
|
+
<Box key={line.key} height={1}>
|
|
319
|
+
<Box flexShrink={0}>
|
|
320
|
+
<Text color={line.color}>{(line.first ? line.label : "").padEnd(labelWidth)}</Text>
|
|
321
|
+
{mark ? (
|
|
322
|
+
<Text color="yellow">{mark === "cursor" && line.first ? " ▶ " : " ┃ "}</Text>
|
|
323
|
+
) : (
|
|
324
|
+
<Text dimColor> │ </Text>
|
|
325
|
+
)}
|
|
326
|
+
</Box>
|
|
324
327
|
{/* Inverse on the plain text: a child's own colour resets would cut the highlight short. */}
|
|
325
328
|
{line.error && !mark ? (
|
|
326
|
-
|
|
327
|
-
<
|
|
328
|
-
|
|
329
|
+
<>
|
|
330
|
+
<Box flexShrink={0}>
|
|
331
|
+
<Text>
|
|
332
|
+
<Text inverse>{COPY_BUTTON}</Text> <Text inverse>{toggleButton(line.error)}</Text>{" "}
|
|
333
|
+
</Text>
|
|
334
|
+
</Box>
|
|
335
|
+
<Text color="red" bold wrap="truncate-end">
|
|
329
336
|
{line.error.summary}
|
|
330
337
|
</Text>
|
|
331
|
-
|
|
338
|
+
</>
|
|
332
339
|
) : mark ? (
|
|
333
340
|
<Text inverse wrap="truncate-end">
|
|
334
341
|
{stripColor(line.text) || " "}
|