diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 02ddb47f93e1e..fdc800b3464ea 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -121,18 +121,10 @@ export default defineComponent({ ], props: { - isMtimeAvailable: { - type: Boolean, - default: false, - }, isSizeAvailable: { type: Boolean, default: false, }, - compact: { - type: Boolean, - default: false, - }, }, setup() { @@ -204,23 +196,7 @@ export default defineComponent({ color: `color-mix(in srgb, var(--color-main-text) ${ratio}%, var(--color-text-maxcontrast))`, } }, - mtimeOpacity() { - const maxOpacityTime = 31 * 24 * 60 * 60 * 1000 // 31 days - const mtime = this.source.mtime?.getTime?.() - if (!mtime) { - return {} - } - - // 1 = today, 0 = 31 days ago - const ratio = Math.round(Math.min(100, 100 * (maxOpacityTime - (Date.now() - mtime)) / maxOpacityTime)) - if (ratio < 0) { - return {} - } - return { - color: `color-mix(in srgb, var(--color-main-text) ${ratio}%, var(--color-text-maxcontrast))`, - } - }, mtimeTitle() { if (this.source.mtime) { return moment(this.source.mtime).format('LLL') diff --git a/apps/files/src/components/FileEntryGrid.vue b/apps/files/src/components/FileEntryGrid.vue index 1ec4f173a0e0f..ed8175fcda763 100644 --- a/apps/files/src/components/FileEntryGrid.vue +++ b/apps/files/src/components/FileEntryGrid.vue @@ -46,6 +46,15 @@ @click.native="execDefaultAction" /> + +