Skip to content

Commit 348e210

Browse files
llkejiyllhwa
authored andcommitted
Update FileManagePage.vue
1 parent d1a3fb4 commit 348e210

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/pages/FileManagePage.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const onDeleteFileClick = async (key?: string) => {
3737
<div v-for="file in uploadedFiles" :key="file.Key"
3838
class="w-full flex flex-row items-center mt-4 rounded border-1 border-gray-300 px-2 py-1">
3939
<div class="w-10 h-10 i-mdi-file-document-outline"></div>
40-
<div class="flex flex-col">
41-
<a class="text-lg font-semibold" :href="`/${file.Key}`" target="_blank">{{ decodeKey(file.Key!) }}</a>
40+
<div class="flex flex-col title">
41+
<a class="text-lg font-semibold" :title="decodeKey(file.Key!)" :href="`/${file.Key}`" target="_blank">{{ decodeKey(file.Key!) }}</a>
4242
<div class="text-sm text-gray">{{ formatBytes(file.Size ?? 0) }}</div>
4343
</div>
4444
<div class="ml-auto w-6 h-6 i-mdi-trash-can-outline cursor-pointer"
@@ -56,4 +56,9 @@ body,
5656
padding: 0;
5757
background-color: #f8f9fa;
5858
}
59+
.title {
60+
overflow: hidden;
61+
text-overflow: ellipsis;
62+
white-space: nowrap;
63+
}
5964
</style>

0 commit comments

Comments
 (0)