@@ -74,16 +74,15 @@ function getCodeRoute(nodePath?: string): RouteLocationRaw {
7474 v-if =" parentPath !== null"
7575 class =" border-b border-border hover:bg-bg-subtle transition-colors"
7676 >
77- <td class = " py-2 px-4 " >
77+ <td colspan = " 2 " >
7878 <NuxtLink
7979 :to =" getCodeRoute(parentPath || undefined)"
80- class =" flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
80+ class =" flex items-center gap-2 py-2 px-4 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
8181 >
8282 <span class =" i-carbon:folder w-4 h-4 text-yellow-600" />
8383 <span >..</span >
8484 </NuxtLink >
8585 </td >
86- <td />
8786 </tr >
8887
8988 <!-- Directory/file rows -->
@@ -92,25 +91,26 @@ function getCodeRoute(nodePath?: string): RouteLocationRaw {
9291 :key =" node.path"
9392 class =" border-b border-border hover:bg-bg-subtle transition-colors"
9493 >
95- <td class = " py-2 px-4 " >
94+ <td colspan = " 2 " >
9695 <NuxtLink
9796 :to =" getCodeRoute(node.path)"
98- class =" flex items-center gap-2 font-mono text-sm hover:text-fg transition-colors"
97+ class =" flex items-center gap-2 py-2 px-4 font-mono text-sm hover:text-fg transition-colors"
9998 :class =" node.type === 'directory' ? 'text-fg' : 'text-fg-muted'"
10099 >
101100 <span
102101 v-if =" node.type === 'directory'"
103102 class =" i-carbon:folder w-4 h-4 text-yellow-600"
104103 />
105104 <span v-else class =" w-4 h-4" :class =" getFileIcon(node.name)" />
106- <span >{{ node.name }}</span >
105+ <span class =" flex-1" >{{ node.name }}</span >
106+ <span
107+ v-if =" node.type === 'file' && node.size"
108+ class =" text-end font-mono text-xs text-fg-subtle"
109+ >
110+ {{ formatBytes(node.size) }}
111+ </span >
107112 </NuxtLink >
108113 </td >
109- <td class =" py-2 px-4 text-end font-mono text-xs text-fg-subtle" >
110- <span v-if =" node.type === 'file' && node.size" >
111- {{ formatBytes(node.size) }}
112- </span >
113- </td >
114114 </tr >
115115 </tbody >
116116 </table >
0 commit comments