fix(control): better folder view, especially for same named folders on different displays

This commit is contained in:
E44
2025-11-22 23:22:31 +01:00
parent 826696ac9c
commit 4cf2633bc1
5 changed files with 33 additions and 13 deletions
+6 -1
View File
@@ -74,9 +74,14 @@ done
for (const response_element of response) {
// filter hidden files (start with '.' -> './.config')
if (response_element.name.charAt(2) !== '.') {
const truncated = {
...response_element,
created: response_element.created.slice(0, 16) // truncated to YYYY-MM-DD hh-mm -> no (milli)seconds
};
const folder_element: FolderElement = {
id: get_uuid(),
hash: JSON.stringify(response_element),
hash: JSON.stringify(truncated),
name: response_element.name.slice(2), // remove "./"
type: response_element.type,
date_created: new Date(response_element.created),