@kud/gh-ink 0.11.0 → 0.11.1

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/dist/index.js +16 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2272,15 +2272,22 @@ var BrowseScreen = ({
2272
2272
  login,
2273
2273
  merged: (item.kind === "pr" || item.kind === "issue") && !!mergedUrls?.includes(item.url),
2274
2274
  sparkFrame,
2275
- gap: viewStart + i > 0 && (item.kind === "repo-header" || item.kind === "subgroup-header" || // A header is always followed by a blank line before its
2276
- // first child in Other PRs that's "free" because the
2277
- // child is itself a repo-header (gap above). A jira row
2278
- // has no such stand-in, so it needs this explicitly. Never
2279
- // applies between two tickets/PRs only right after a
2280
- // header.
2281
- item.kind === "jira" && ["repo-header", "subgroup-header"].includes(
2282
- section.items[viewStart + i - 1]?.kind
2283
- ))
2275
+ gap: (
2276
+ // Window-relative, never `viewStart + i`. fitCount prices the
2277
+ // window's FIRST row at one line (isFirst), so gapping it when
2278
+ // scrolled draws a row the budget never bought and the frame
2279
+ // is sized to fill the terminal exactly, so the overflow scrolls
2280
+ // the whole panel up a line instead of clipping.
2281
+ i > 0 && (item.kind === "repo-header" || item.kind === "subgroup-header" || // A header is always followed by a blank line before its
2282
+ // first child in Other PRs that's "free" because the
2283
+ // child is itself a repo-header (gap above). A jira row
2284
+ // has no such stand-in, so it needs this explicitly. Never
2285
+ // applies between two tickets/PRs — only right after a
2286
+ // header.
2287
+ item.kind === "jira" && ["repo-header", "subgroup-header"].includes(
2288
+ section.items[viewStart + i - 1]?.kind
2289
+ ))
2290
+ )
2284
2291
  },
2285
2292
  `${viewStart + i}:${item.kind === "jira" ? item.instanceKey ?? item.key : item.kind === "repo-header" ? `header:${item.repo}` : item.kind === "subgroup-header" ? `subgroup:${item.label}` : item.kind === "show-more" ? `show-more:${item.hidden[0]?.repo ?? i}` : item.kind === "show-less" ? `show-less:${item.toHide[0]?.repo ?? i}` : `${item.repo}/${item.number}`}`
2286
2293
  )) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Ink components for rendering GitHub PR review comments and health — controlled, presentation-only, built on @kud/ink-ui and fed by @kud/gh.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",