patchrelay 0.20.7 → 0.20.8
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/dist/build-info.json
CHANGED
|
@@ -6,8 +6,10 @@ export function Timeline({ entries, follow }) {
|
|
|
6
6
|
const { stdout } = useStdout();
|
|
7
7
|
const rows = stdout?.rows ?? 24;
|
|
8
8
|
const maxVisible = Math.max(5, rows - DETAIL_CHROME_ROWS);
|
|
9
|
-
|
|
10
|
-
const visible = entries.length >
|
|
9
|
+
// Follow mode: tail to screen height. Off: show everything.
|
|
10
|
+
const visible = follow && entries.length > maxVisible
|
|
11
|
+
? entries.slice(-maxVisible)
|
|
12
|
+
: entries;
|
|
11
13
|
const skipped = entries.length - visible.length;
|
|
12
14
|
if (entries.length === 0) {
|
|
13
15
|
return _jsx(Text, { dimColor: true, children: "No timeline events yet." });
|