diff --git a/lib/components/FilePicker/FileListRow.vue b/lib/components/FilePicker/FileListRow.vue
index b0c1c8a01..e55ebca2b 100644
--- a/lib/components/FilePicker/FileListRow.vue
+++ b/lib/components/FilePicker/FileListRow.vue
@@ -12,6 +12,7 @@
@@ -50,9 +51,14 @@ const emit = defineEmits<{
}>()
/**
- * The displayname of the current node
+ * The displayname of the current node (excluding file extension)
*/
-const displayName = computed(() => props.node.attributes?.displayname || props.node.basename)
+const displayName = computed(() => props.node.attributes?.displayName || props.node.basename.slice(0, props.node.extension ? -props.node.extension.length : undefined))
+
+/**
+ * The file extension of the file
+ */
+const fileExtension = computed(() => props.node.extension)
/**
* If this node can be picked, basically just check if picking a directory is allowed
@@ -119,5 +125,10 @@ function handleKeyDown(event: KeyboardEvent) {
overflow: hidden;
text-overflow: ellipsis;
}
+
+ &__file-extension {
+ color: var(--color-text-maxcontrast);
+ min-width: fit-content;
+ }
}
|