@@ -75,16 +75,15 @@ const bytesFormatter = useBytesFormatter()
7575 v-if =" parentPath !== null"
7676 class =" border-b border-border hover:bg-bg-subtle transition-colors"
7777 >
78- <td class = " py-2 px-4 " >
78+ <td colspan = " 2 " >
7979 <NuxtLink
8080 :to =" getCodeRoute(parentPath || undefined)"
81- class =" flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
81+ class =" flex items-center gap-2 py-2 px-4 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
8282 >
8383 <span class =" i-carbon:folder w-4 h-4 text-yellow-600" />
8484 <span >..</span >
8585 </NuxtLink >
8686 </td >
87- <td />
8887 </tr >
8988
9089 <!-- Directory/file rows -->
@@ -93,25 +92,26 @@ const bytesFormatter = useBytesFormatter()
9392 :key =" node.path"
9493 class =" border-b border-border hover:bg-bg-subtle transition-colors"
9594 >
96- <td class = " py-2 px-4 " >
95+ <td colspan = " 2 " >
9796 <NuxtLink
9897 :to =" getCodeRoute(node.path)"
99- class =" flex items-center gap-2 font-mono text-sm hover:text-fg transition-colors"
98+ class =" flex items-center gap-2 py-2 px-4 font-mono text-sm hover:text-fg transition-colors"
10099 :class =" node.type === 'directory' ? 'text-fg' : 'text-fg-muted'"
101100 >
102101 <span
103102 v-if =" node.type === 'directory'"
104103 class =" i-carbon:folder w-4 h-4 text-yellow-600"
105104 />
106105 <span v-else class =" w-4 h-4" :class =" getFileIcon(node.name)" />
107- <span >{{ node.name }}</span >
106+ <span class =" flex-1" >{{ node.name }}</span >
107+ <span
108+ v-if =" node.type === 'file' && node.size"
109+ class =" text-end font-mono text-xs text-fg-subtle"
110+ >
111+ {{ bytesFormatter.format(node.size) }}
112+ </span >
108113 </NuxtLink >
109114 </td >
110- <td class =" py-2 px-4 text-end font-mono text-xs text-fg-subtle" >
111- <span v-if =" node.type === 'file' && node.size" >
112- {{ bytesFormatter.format(node.size) }}
113- </span >
114- </td >
115115 </tr >
116116 </tbody >
117117 </table >
0 commit comments