Youtube indirmeleri ile ilgili UI/UX güncellemeleri yapıldı

This commit is contained in:
2025-11-30 20:16:20 +03:00
parent decf503297
commit 4ab37005cf
3 changed files with 50 additions and 9 deletions

View File

@@ -78,6 +78,10 @@
: originalSegments;
const isDirectory = Boolean(file.isDirectory);
const baseDisplayName =
file.displayName ||
displaySegments[displaySegments.length - 1] ||
file.name;
return {
...file,
isDirectory,
@@ -85,7 +89,7 @@
originalSegments,
displaySegments,
displayPath: displaySegments.join("/"),
displayName: displaySegments[displaySegments.length - 1] || file.name,
displayName: baseDisplayName,
displayParentPath: displaySegments.slice(0, -1).join("/"),
};
}
@@ -123,7 +127,7 @@
if (file.isDirectory) {
const displayPath = segments.join("/");
const parentDisplayPath = segments.slice(0, -1).join("/");
const displayName = segments[segments.length - 1] || displayPath;
const displayName = file.displayName || segments[segments.length - 1] || displayPath;
ensureDirectoryEntry(displayPath, displayName, parentDisplayPath, fullOriginalPath);
}