@agentprojectcontext/apx 1.55.0 → 1.55.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.
@@ -18,7 +18,7 @@
18
18
  <link rel="apple-touch-icon" href="/favicon/dark/apple-touch-icon.png" media="(prefers-color-scheme: dark)" />
19
19
  <link rel="manifest" href="/favicon/white/site.webmanifest" media="(prefers-color-scheme: light)" />
20
20
  <link rel="manifest" href="/favicon/dark/site.webmanifest" media="(prefers-color-scheme: dark)" />
21
- <script type="module" crossorigin src="/assets/index-J3_Jhr99.js"></script>
21
+ <script type="module" crossorigin src="/assets/index-BxS9xYHB.js"></script>
22
22
  <link rel="stylesheet" crossorigin href="/assets/index-BwnMDZaD.css">
23
23
  </head>
24
24
  <body class="bg-background text-foreground antialiased">
@@ -65,9 +65,13 @@ function useVisibleCount(
65
65
  const el = listRef.current;
66
66
  if (!el || !enabled) return;
67
67
  const measure = () => {
68
- const h = el.clientHeight;
69
- if (!h) return;
70
- const gap = parseFloat(getComputedStyle(el).rowGap) || 12;
68
+ const cs = getComputedStyle(el);
69
+ // clientHeight includes vertical padding; items lay out in the content box,
70
+ // so subtract the padding we added to give the active ring breathing room.
71
+ const padY = (parseFloat(cs.paddingTop) || 0) + (parseFloat(cs.paddingBottom) || 0);
72
+ const h = el.clientHeight - padY;
73
+ if (h <= 0) return;
74
+ const gap = parseFloat(cs.rowGap) || 12;
71
75
  // A hidden, always-present probe gives an accurate item height even on the
72
76
  // first paint or when zero real items currently fit.
73
77
  const probe = el.querySelector<HTMLElement>("[data-rail-probe]");
@@ -242,7 +246,7 @@ export function ProjectSidebar({ onSelect, onOpenRoby, onOpenAddProject }: Props
242
246
 
243
247
  <div
244
248
  ref={listRef}
245
- className="flex min-h-0 w-full flex-1 flex-col items-center gap-3 overflow-hidden"
249
+ className="flex min-h-0 w-full flex-1 flex-col items-center gap-3 overflow-hidden py-1.5"
246
250
  >
247
251
  {rest.length > 0 && collapsed && (
248
252
  <RailProjectMenu