@@ -296,9 +296,9 @@ useSeoMeta({
296296 </script >
297297
298298<template >
299- <main class =" min-h-screen flex flex-col" >
299+ <main class =" flex-1 flex flex-col" >
300300 <!-- Header -->
301- <header class =" border-b border-border bg-bg sticky top-0 z-10 " >
301+ <header class =" border-b border-border bg-bg sticky top-14 z-20 " >
302302 <div class =" container py-4" >
303303 <!-- Package info and navigation -->
304304 <div class =" flex items-center gap-2 mb-3 flex-wrap min-w-0" >
@@ -383,10 +383,10 @@ useSeoMeta({
383383 </div >
384384
385385 <!-- Main content: file tree + file viewer -->
386- <div v-else-if =" fileTree" class =" flex-1 flex min-h-0 " >
387- <!-- File tree sidebar -->
386+ <div v-else-if =" fileTree" class =" flex flex-1 " >
387+ <!-- File tree sidebar - sticky with internal scroll - ->
388388 <aside
389- class =" w-64 lg:w-72 border-r border-border overflow-y-auto shrink-0 hidden md:block bg-bg-subtle"
389+ class =" w-64 lg:w-72 border-r border-border shrink-0 hidden md:block bg-bg-subtle sticky top-28 self-start h-[calc(100vh-7rem)] overflow-y-auto "
390390 >
391391 <CodeFileTree
392392 :tree =" fileTree.tree"
@@ -395,8 +395,10 @@ useSeoMeta({
395395 />
396396 </aside >
397397
398- <!-- File content / Directory listing -->
399- <div class =" flex-1 overflow-auto min-w-0" >
398+ <!-- File content / Directory listing - sticky with internal scroll on desktop -->
399+ <div
400+ class =" flex-1 min-w-0 md:sticky md:top-28 md:self-start md:h-[calc(100vh-7rem)] md:overflow-y-auto"
401+ >
400402 <!-- File viewer -->
401403 <template v-if =" isViewingFile && fileContent " >
402404 <div
0 commit comments