@@ -219,14 +219,6 @@ function getCurrentCodeUrlWithPath(path?: string): string {
219219 })
220220}
221221
222- // Extract org name from scoped package
223- const orgName = computed (() => {
224- const name = packageName .value
225- if (! name .startsWith (' @' )) return null
226- const match = name .match (/ ^ @([^ /] + )\/ / )
227- return match ? match [1 ] : null
228- })
229-
230222// Line number click handler - update URL hash without scrolling
231223function handleLineClick(lineNum : number , event : MouseEvent ) {
232224 let newHash: string
@@ -264,14 +256,6 @@ const { copied: fileContentCopied, copy: copyFileContent } = useClipboard({
264256 copiedDuring: 2000 ,
265257})
266258
267- // Scroll to top of file content
268- const contentContainer = useTemplateRef (' contentContainer' )
269- function scrollToTop() {
270- if (contentContainer .value ) {
271- contentContainer .value .scrollTo ({ top: 0 , behavior: ' smooth' })
272- }
273- }
274-
275259// Canonical URL for this code page
276260const canonicalUrl = computed (() => ` https://npmx.dev${getCodeUrl (route .params )} ` )
277261
@@ -384,7 +368,7 @@ defineOgImageComponent('Default', {
384368 </aside >
385369
386370 <!-- File content / Directory listing - sticky with internal scroll on desktop -->
387- <div class =" flex-1 min-w-0 self-start" ref = " contentContainer " >
371+ <div class =" flex-1 min-w-0 self-start" >
388372 <div
389373 class =" sticky z-10 top-25 bg-bg border-b border-border px-4 py-2 flex items-center justify-between gap-2 text-nowrap overflow-x-auto max-w-full"
390374 >
0 commit comments