diff --git a/service/internal/sharerelay/static/index.html b/service/internal/sharerelay/static/index.html index 5d22004c..7ad0eff7 100644 --- a/service/internal/sharerelay/static/index.html +++ b/service/internal/sharerelay/static/index.html @@ -21,7 +21,14 @@ main { flex: 1; position: relative; min-height: 0; } iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; } .player { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; } - .player img { max-width: 100%; max-height: 100%; } + .player { position: relative; } + .player img, .player video { max-width: 100%; max-height: 100%; } + .player video { width: 100%; height: 100%; object-fit: contain; } + .player-note { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; text-align: center; } + .player-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; } + .player-controls button { font: inherit; min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; } + .player-controls button:disabled { opacity: .6; cursor: default; } + [hidden] { display: none !important; } .notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; } .notice h1 { font-size: 20px; margin: 0; font-weight: 600; } .notice p { margin: 0; color: var(--muted); max-width: 420px; } @@ -38,7 +45,7 @@