@@ -59,16 +59,15 @@ const parentPath = computed(() => {
5959 v-if =" parentPath !== null"
6060 class =" border-b border-border hover:bg-bg-subtle transition-colors"
6161 >
62- <td class = " py-2 px-4 " >
62+ <td colspan = " 2 " >
6363 <NuxtLink
6464 :to =" parentPath ? `${baseUrl}/${parentPath}` : baseUrl"
65- class =" flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
65+ class =" flex items-center gap-2 py-2 px-4 font-mono text-sm text-fg-muted hover:text-fg transition-colors"
6666 >
6767 <span class =" i-carbon:folder w-4 h-4 text-yellow-600" />
6868 <span >..</span >
6969 </NuxtLink >
7070 </td >
71- <td />
7271 </tr >
7372
7473 <!-- Directory/file rows -->
@@ -77,25 +76,26 @@ const parentPath = computed(() => {
7776 :key =" node.path"
7877 class =" border-b border-border hover:bg-bg-subtle transition-colors"
7978 >
80- <td class = " py-2 px-4 " >
79+ <td colspan = " 2 " >
8180 <NuxtLink
8281 :to =" `${baseUrl}/${node.path}`"
83- class =" flex items-center gap-2 font-mono text-sm hover:text-fg transition-colors"
82+ class =" flex items-center gap-2 py-2 px-4 font-mono text-sm hover:text-fg transition-colors"
8483 :class =" node.type === 'directory' ? 'text-fg' : 'text-fg-muted'"
8584 >
8685 <span
8786 v-if =" node.type === 'directory'"
8887 class =" i-carbon:folder w-4 h-4 text-yellow-600"
8988 />
9089 <span v-else class =" w-4 h-4" :class =" getFileIcon(node.name)" />
91- <span >{{ node.name }}</span >
90+ <span class =" flex-1" >{{ node.name }}</span >
91+ <span
92+ v-if =" node.type === 'file' && node.size"
93+ class =" text-end font-mono text-xs text-fg-subtle"
94+ >
95+ {{ formatBytes(node.size) }}
96+ </span >
9297 </NuxtLink >
9398 </td >
94- <td class =" py-2 px-4 text-end font-mono text-xs text-fg-subtle" >
95- <span v-if =" node.type === 'file' && node.size" >
96- {{ formatBytes(node.size) }}
97- </span >
98- </td >
9999 </tr >
100100 </tbody >
101101 </table >
0 commit comments