diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-26 11:16:40 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-26 11:16:40 +0100 |
| commit | d842b3c49fe4c03993f32fb9bebbef954c54675d (patch) | |
| tree | e88f36e59793104cf220642ad792ca8df3a9a392 /static/deck.css | |
| parent | 6496d0660abf781ff2a76f97f9a5c03034d6cf45 (diff) | |
| download | deck-it-d842b3c49fe4c03993f32fb9bebbef954c54675d.tar.gz deck-it-d842b3c49fe4c03993f32fb9bebbef954c54675d.zip | |
feat(xbox): list, view and download uploaded captures
The slow read also searches mediahub for the user's screenshots and
game clips. Their CDN URIs are signed, so the tab shows thumbnails and
opens a capture in a dialog (outside the redrawn part, so a data change
leaves it open) with a download link and a close button, straight from
Microsoft. Only captures the console uploaded appear; an in-game photo
mode (e.g. Rockstar's) is not an Xbox capture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css index 1bebd1a..02c91aa 100644 --- a/static/deck.css +++ b/static/deck.css @@ -962,7 +962,18 @@ dialog.vm-sheet::backdrop { background: color-mix(in srgb, var(--udt-crust) 55%, .xbox .xb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; } .xbox .xb-game { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .xbox .xb-gcover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--udt-surface0); } -.xbox .xb-gname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.xbox .xb-cap { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; } +.xbox .xb-ccover { aspect-ratio: 16 / 9; } +.xbox dialog.xb-view { margin: auto; width: min(1100px, 94vw); max-height: 92vh; padding: 14px; border: 0; + border-radius: 18px; background: var(--udt-base); color: var(--udt-text); } +.xbox .xb-vclose { position: absolute; top: 24px; right: 24px; border-radius: 50%; padding: 0; + background: color-mix(in srgb, var(--udt-crust) 70%, transparent); } +.xbox dialog.xb-view[open] { position: fixed; display: flex; flex-direction: column; gap: 12px; } +.xbox dialog.xb-view::backdrop { background: color-mix(in srgb, var(--udt-crust) 70%, transparent); } +.xbox .xb-vmedia { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 12px; background: var(--udt-crust); } +.xbox .xb-vfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; } +.xbox .xb-vdl { display: inline-flex; align-items: center; padding: 0 18px; font-size: 1rem; font-weight: 600; text-decoration: none; } +.xbox .xb-gname {font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xbox .xb-gmeta { color: var(--udt-subtext0); font-size: 0.857rem; } .xbox .xb-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; } .xbox .xb-list { display: flex; flex-direction: column; gap: 8px; } |
