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) */}
+