@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dev/board.tsx +18 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elumixor/devkit",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Dev orchestrator for bun monorepos — free ports, run apps side-by-side, open the browser when ready",
5
5
  "author": "elumixor",
6
6
  "license": "ISC",
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
- <Box key={line.key}>
318
- <Text color={line.color}>{(line.first ? line.label : "").padEnd(labelWidth)}</Text>
319
- {mark ? (
320
- <Text color="yellow">{mark === "cursor" && line.first ? " ▶ " : " ┃ "}</Text>
321
- ) : (
322
- <Text dimColor> │ </Text>
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
- <Text wrap="truncate-end">
327
- <Text inverse>{COPY_BUTTON}</Text> <Text inverse>{toggleButton(line.error)}</Text>{" "}
328
- <Text color="red" bold>
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
- </Text>
338
+ </>
332
339
  ) : mark ? (
333
340
  <Text inverse wrap="truncate-end">
334
341
  {stripColor(line.text) || " "}