Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit b394540

Browse files
committed
fix: only show size when is file or selection
License: MIT Signed-off-by: Henrique Dias <[email protected]>
1 parent 3ed5f8c commit b394540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/prompts/Info.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<p v-if="selected.length > 1">{{ $t('prompts.filesSelected', { count: selected.length }) }}</p>
99

1010
<p v-if="selected.length < 2"><strong>{{ $t('prompts.displayName') }}</strong> {{ name }}</p>
11-
<p><strong>{{ $t('prompts.size') }}:</strong> <span id="content_length"></span> {{ humanSize }}</p>
11+
<p v-if="!dir || selected.length > 1"><strong>{{ $t('prompts.size') }}:</strong> <span id="content_length"></span> {{ humanSize }}</p>
1212
<p v-if="selected.length < 2"><strong>{{ $t('prompts.lastModified') }}:</strong> {{ humanTime }}</p>
1313

1414
<template v-if="dir && selected.length === 0">

0 commit comments

Comments
 (0)