@plannotator/ui 0.35.2 → 0.37.0
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/HANDOFF.md +4 -3
- package/README.md +73 -1
- package/components/DocBadges.tsx +9 -6
- package/components/StickyHeaderLane.tsx +70 -58
- package/components/Viewer.tsx +272 -94
- package/components/VimTargetReticle.tsx +1 -1
- package/components/compactHeaderLayout.ts +52 -0
- package/hooks/useAnnotationHighlighter.ts +31 -19
- package/package.json +1 -1
- package/styles.css +1 -1
- package/utils/vimScroll.ts +1 -1
package/utils/vimScroll.ts
CHANGED
|
@@ -142,7 +142,7 @@ export function scrollVimTargetIntoView(
|
|
|
142
142
|
|
|
143
143
|
const margin = resolveVimScrollMargin(viewportRect.height);
|
|
144
144
|
const stickyBottom = viewport
|
|
145
|
-
.querySelector<HTMLElement>('[data-sticky-actions]')
|
|
145
|
+
.querySelector<HTMLElement>('[data-viewer-document-header], [data-sticky-actions]')
|
|
146
146
|
?.getBoundingClientRect().bottom;
|
|
147
147
|
const topMargin = stickyBottom !== undefined
|
|
148
148
|
? Math.max(margin, stickyBottom - viewportRect.top + 8)
|