fix(#107): trash/recent/favorites list view rendering bugs

Trash view:
- Fix 'Invalid Date': use item.trashed_at (ISO 8601) instead of item.deleted_at * 1000
- Fix literal i18n key 'files.file_types.file': determine type from file extension
  (pdf, image, video, audio, text, document) since trash DTO has no mime_type
- Fix column alignment: remove checkbox from trash header (not applicable),
  add .trash-header CSS class matching the 5-column grid layout

Recent view:
- Fix header/row column misalignment: add empty placeholder div for indicator
  column and .recent-header CSS class matching the 5-column grid
- Fix missing i18n key: use 'recent.accessed' instead of 'files.last_accessed'
- Fix default typeLabel not internationalized: use i18n.t('files.file_types.document')

Favorites view:
- Fix header/row column misalignment: add empty placeholder div for indicator
  column and .favorites-header CSS class matching the 5-column grid
- Fix default typeLabel not internationalized: use i18n.t('files.file_types.document')

Bump SW cache to v11.
This commit is contained in:
Dionisio
2026-02-14 11:06:29 +01:00
parent 1672889044
commit 9290aea591
7 changed files with 57 additions and 17 deletions
+6 -2
View File
@@ -1811,9 +1811,13 @@ select:focus {
background-color: #fff0ec;
}
/* For trash mode, adjust columns */
/* For trash mode, adjust columns (5 cols: name, type, path, date, actions) */
.list-header.trash-header {
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 140px 100px;
}
.trash-item.file-item {
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 120px 100px;
grid-template-columns: minmax(180px, 1.5fr) 0.5fr 1fr 140px 100px;
}
.file-item:hover {