From 9d00889175f7fb93a88aedca4b95fd5dd9e515b2 Mon Sep 17 00:00:00 2001 From: Willie Date: Sun, 20 Sep 2026 00:28:57 +0800 Subject: [PATCH] fix(ui): tighten sticky panes on skill detail and new skill pages The 80px offset was there to clear the React Query devtools button, which only exists in dev, so released builds showed a large empty band above the file viewer and the SKILL.md preview. The info column on the SKILL.md tab now stays in view as well while a long document scrolls. --- ui/src/pages/NewSkillPage.tsx | 6 +++--- ui/src/pages/ResourceDetailPage.tsx | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/NewSkillPage.tsx b/ui/src/pages/NewSkillPage.tsx index eb40b6b42..70c628afb 100644 --- a/ui/src/pages/NewSkillPage.tsx +++ b/ui/src/pages/NewSkillPage.tsx @@ -226,10 +226,10 @@ export default function NewSkillPage() { - {/* The preview stays in view while the form scrolls; the offset clears the fixed account avatar */} -
+ {/* The preview stays in view while the form scrolls */} +

{t('newSkill.preview.title')}

- + {preview &&

{preview.path}

}
diff --git a/ui/src/pages/ResourceDetailPage.tsx b/ui/src/pages/ResourceDetailPage.tsx index 314ec1037..550c15630 100644 --- a/ui/src/pages/ResourceDetailPage.tsx +++ b/ui/src/pages/ResourceDetailPage.tsx @@ -320,7 +320,9 @@ export default function ResourceDetailPage() { )} -
+ {/* Stays in view while a long SKILL.md scrolls; scrolls on its own when the targets outgrow + the viewport. Padded by what it is pulled out by, so the scroll box does not clip shadows */} +
- {/* The viewer stays in view while a long file list scrolls the page. The offsets keep it clear of the - fixed account avatar (top right) and the scroll-to-top button (bottom right) */} -
+ {/* The viewer stays in view while a long file list scrolls the page. The height leaves room + below for the scroll-to-top button (bottom right) */} +
{selected}