Files
Oxicloud/static/css/views/mySharesView.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

291 lines
8.0 KiB
CSS

/* ── My Shares view ─────────────────────────────────────────────────────────
*
* BEM classes for the row-per-grant MySharesList component.
* All colors via var(--*). Mobile-first layout.
* ─────────────────────────────────────────────────────────────────────────── */
/* ── Load-more wrapper ───────────────────────────────────────────────────── */
.ms-load-more-wrapper {
display: flex;
justify-content: center;
padding: var(--space-4) 0 var(--space-2);
}
.ms-load-more-wrapper.hidden {
display: none;
}
/* ── Container: dissolve when lanes are present ──────────────────────────── */
.files-list-view:has(.ms-lane) {
background-color: transparent;
box-shadow: none;
border-radius: 0;
overflow: visible;
gap: var(--space-2-5);
display: flex;
flex-direction: column;
}
/* ── Lane (swimlane card) ────────────────────────────────────────────────── */
.ms-lane {
background-color: var(--color-item);
border-radius: var(--radius-xl);
box-shadow: 0 1px 3px var(--color-shadow-xs);
overflow: hidden;
}
.ms-lane__header {
background: var(--color-bg-muted);
border-bottom: 1px solid var(--color-border-faint);
}
/* Vignette lane headers need the same padding as the resource row */
.ms-lane__header .user-vignette {
padding: var(--space-2-5) var(--space-3-5);
font-weight: var(--weight-semibold);
}
.ms-lane__header .user-vignette .user-vignette__name {
font-size: var(--text-sm);
color: var(--color-text-heading);
font-weight: var(--weight-semibold);
}
.ms-lane__body {
/* rows are direct children */
}
/* ── Resource lane header (items mode) ───────────────────────────────────── */
.ms-resource-row {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2-5) var(--space-3-5);
}
/* Size the shared .file-icon component for inline use in myShares rows */
.ms-resource-row .file-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-md);
font-size: var(--text-base);
flex-shrink: 0;
}
/* Smaller icon for child grant rows and inline resource links */
.ms-grant-row__identity .file-icon,
.ms-link-identity__resource .file-icon {
width: 24px;
height: 24px;
border-radius: var(--radius-sm);
font-size: var(--text-2xs);
flex-shrink: 0;
}
.ms-resource-row__name {
flex: 1;
font-weight: var(--weight-semibold);
color: var(--color-text);
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ms-resource-row__name:hover {
color: var(--color-accent);
text-decoration: underline;
}
.ms-resource-row__edit {
flex-shrink: 0;
font-size: var(--text-xs);
padding: 3px var(--space-2);
opacity: 0.6;
transition: opacity 0.15s;
}
.ms-resource-row__edit:hover {
opacity: 1;
}
/* ── Subject lane header (sharedWith mode — link bucket) ─────────────────── */
.ms-link-lane-label {
display: flex;
align-items: center;
gap: var(--space-1-5);
padding: var(--space-2) var(--space-3-5);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--color-text-secondary);
}
.ms-link-lane-label__icon {
color: var(--color-text-faint);
font-size: var(--text-xs);
}
/* ── Grant row ───────────────────────────────────────────────────────────── */
/* Four-column grid so the role pill and expiry chip line up vertically
* across every row in a lane. Reserved widths fit the longest expected
* label ("Can manage" → ~110px, "Expires Mar 5, 2026" → ~180px). */
.ms-grant-row {
display: grid;
grid-template-columns: 1fr 110px 180px auto;
align-items: center;
gap: var(--space-2);
padding: 7px var(--space-3-5) 7px var(--space-7);
border-bottom: 1px solid var(--color-border-faint);
transition: background 0.1s;
}
/* Pill / chip sit at the start of their column rather than stretching
* to fill it — keeps the natural rounded shape. */
.ms-grant-row > .role-chip,
.ms-grant-row > .expiry-chip {
justify-self: start;
}
.ms-grant-row:last-child {
border-bottom: none;
}
.ms-grant-row:hover {
background: var(--color-bg-hover);
}
.ms-grant-row--expired {
opacity: 0.6;
}
/* ── Grant row — identity ─────────────────────────────────────────────────── */
.ms-grant-row__identity {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-1-5);
}
.ms-identity__name {
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ms-identity__resource-name {
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-text);
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ms-identity__resource-name:hover {
color: var(--color-accent);
text-decoration: underline;
}
/* Token in sharedWith mode: arrow + resource link */
.ms-link-identity__arrow {
font-size: var(--text-2xs);
color: var(--color-text-faint);
flex-shrink: 0;
}
.ms-link-identity__resource {
font-size: var(--text-xs);
color: var(--color-text-secondary);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ms-link-identity__resource:hover {
color: var(--color-accent);
text-decoration: underline;
}
/* Role chip styles moved to components/roleChip.css (shared component).
* Expiry chip styles moved to components/expiryChip.css (shared with Trash). */
/* ── Kebab / icon buttons ────────────────────────────────────────────────── */
.ms-btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--color-text-muted);
cursor: pointer;
font-size: var(--text-2xs);
flex-shrink: 0;
transition:
background 0.12s,
color 0.12s;
}
.ms-btn-icon:hover {
background: var(--color-bg-hover);
color: var(--color-text);
}
.ms-btn-icon:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.ms-kebab-btn {
margin-left: auto;
}
/* ── Context menu current-item indicator ─────────────────────────────────── */
.ms-menu-item--current {
font-weight: var(--weight-semibold);
}
/* ── Context menu expiry row ─────────────────────────────────────────────── */
.ms-menu-expiry-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
padding: var(--space-1-5) var(--space-3);
}
.ms-menu-expiry-label {
font-size: var(--text-xs);
color: var(--color-text-muted);
white-space: nowrap;
flex-shrink: 0;
}
/* Stretch the chip to fill remaining space in the expiry row */
.ms-menu-expiry-row .smd-expiry-chip-wrap {
flex: 1;
min-width: 0;
}