Files
Oxicloud/static/css/components/contextMenu.css
T
DioCrafts 81a93a489b feat: photo/video capture-date pipeline + premium UI/UX overhaul
Backend — Photos timeline now groups by real capture date instead of upload time. New MediaMetadataService (FileLifecycleHook) extracts EXIF DateTimeOriginal from images and container creation_time from videos (mov/mp4/mkv) via nom-exif, timezone-correct (OffsetTimeOriginal), persisting captured_at so the existing media_sort_date trigger takes over. Adds POST /admin/photos/metadata/reextract to backfill existing media. Falls back to upload date when no embedded date exists.

Frontend — premium grid cards: combined metadata line (relative date · size, owner avatar when shared), custom selection checkbox with a clear checked state, uniform full-width 4:3 thumbnail tiles independent of filename length, centered file-type icons, and a hit-test fix so checkbox/star/kebab clicks reach the controls (the decorative thumbnail no longer captures pointer events). Notification messages internationalised across all 16 locales. Broader polish: design tokens, a11y/focus-visible states, brand + PWA assets.

Chore — bump semver-compatible dependencies (cargo upgrade); add nom-exif 3.6.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 00:24:27 +02:00

77 lines
1.5 KiB
CSS

/* Context menu */
.context-menu {
position: absolute;
background: var(--color-bg-surface);
border: 1px solid var(--color-border);
border-radius: 14px;
box-shadow:
0 10px 36px var(--color-shadow-lg),
0 0 0 1px var(--color-shadow-xs);
padding: var(--space-1-5);
min-width: 200px;
z-index: 2000;
display: block;
animation: contextMenuIn 0.15s ease-out;
}
@keyframes contextMenuIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.context-menu-item {
padding: var(--space-2-5) var(--space-3-5);
cursor: pointer;
display: flex;
align-items: center;
gap: var(--space-3);
color: var(--color-text-dark);
font-size: var(--text-base);
border-radius: var(--radius-lg);
transition: background 0.12s ease;
}
.context-menu-item:hover {
background: var(--color-border-light);
}
.context-menu-item:active {
background: var(--color-border);
}
.context-menu-item i {
width: 18px;
text-align: center;
font-size: var(--text-base);
color: var(--color-text-subtle);
[dir="rtl"] & {
margin-left: 0;
margin-right: 0;
}
}
.context-menu-item-danger {
color: var(--color-danger-alt);
}
.context-menu-item-danger:hover {
background: var(--color-danger-light-bg);
}
.context-menu-item-danger i {
color: var(--color-danger-alt);
}
.context-menu-separator {
height: 1px;
background: var(--color-border-light);
margin: var(--space-1) var(--space-2);
}