Files
Oxicloud/static/css/recent.css
T
Dionisio 9290aea591 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.
2026-02-14 11:06:29 +01:00

92 lines
1.7 KiB
CSS

/* Styles for the recent files feature */
/* Recent indicator */
.recent-indicator {
position: absolute;
top: 10px;
right: 10px;
width: 25px;
height: 25px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #6c757d;
z-index: 5;
[dir='rtl'] & {
left: 10px;
right: unset;
}
}
/* Styles for the recent view items */
.recent-item {
position: relative;
}
/* Adjustments for grid view */
.file-card.recent-item {
border-left: 3px solid #6c757d;
[dir='rtl'] & {
border-right: 3px solid #6c757d;
border-left: unset;
}
}
/* Adjustments for list view */
.list-header.recent-header {
grid-template-columns: 30px minmax(200px, 2fr) 1fr 1fr 120px;
}
.file-item.recent-item {
position: relative;
grid-template-columns: 30px minmax(200px, 2fr) 1fr 1fr 120px;
}
.file-item.recent-item .recent-indicator {
position: relative;
top: 0;
right: 0;
width: 30px;
height: 30px;
}
/* Styles for the recent-specific empty state */
.recents-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 50px 20px;
text-align: center;
color: #6c757d;
}
.recents-empty-state i {
font-size: 48px;
color: #6c757d;
margin-bottom: 20px;
opacity: 0.6;
}
.recents-empty-state p {
margin-bottom: 10px;
max-width: 400px;
}
/* Tooltip for access time */
.recent-item .file-info {
cursor: help;
}
/* Animation for recent files */
.recent-item {
animation: recent-fade-in 0.3s ease;
}
@keyframes recent-fade-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}