forge
Explore
Log in

Don't you dare go Hollow

House media player, working viewer Download, Everyone panel redesign

Browse files at this commit

e11412502c817c43e060de080983cfc79f34b5c1Ahmet Kaan GümüşParent: 0d80173
  • feat
    • house media player, working viewer Download, Everyone panel redesign
Show full message
feat(ui): house media player, working viewer Download, Everyone panel redesign

The viewer's media now plays through the house player — play/pause toggle,
mono clock, accent seek bar, fullscreen on video — over controls-less
elements; native controls are browser chrome that ignores the theme, and on
the video page they were cut at the fold while the picture overflowed its
stage. The stage's duplicate rules merge into one card; the dead
viewer-audio wrap goes with them.

The viewer's Download link carried no download attribute, so the soft-nav
handler fetched the bytes and swapped them into the page as text. The link
wears the attribute now, and the handler skips every /file/<id> byte route
so the class cannot recur.

The admin register's Set and Save buttons were display:none: the dropdown
enhancement hid a form's submit on the assumption every enhanced select
autosubmits, and the quota and upload-limit unit selects do not — quotas
could not be saved from the page at all. The enhancement now bows the
submit out only for autosubmit selects. The register gains a Storage quota
column with the compact amount+unit+Set form on the row line, Disable sits
at the row's end, and the instance upload limit becomes a labeled row under
the table instead of a floating strip.
crates/in-web/src/dropdown.rsmodified+5 -6
@@ -187,16 +187,15 @@ pub async fn dropdown_script(cx: &Cx) -> Result {
187187 window.__inAdded(trigger);\
188188 select.parentNode.insertBefore(trigger, select);\
189189 window.__inOwn(select, ['dd-native'], []);\
190- /* The form's own submit only serves the no-script path; once \
191- the select is enhanced it duplicates the autosubmit, so it \
192- bows out — directly, not via a stylesheet the skin or a \
193- morph might out-race. */ \
194- var go = null; \
190+ /* The form's own submit only serves the no-script path of an \
191+ autosubmit select; once that select is enhanced it bows out. \
192+ A select without autosubmit still needs its button — hiding \
193+ it then strands the form with no way to post at all. */ \
195194 var sibs = select.parentNode.children; \
196195 for (var si = 0; si < sibs.length; si++) { \
197196 if (sibs[si].tagName === 'BUTTON' && sibs[si].type === 'submit' && !sibs[si].classList.contains('dd-trigger')) { go = sibs[si]; break; } \
198197 } \
199- if (go) { window.__inOwn(go, [], ['style']); go.style.display = 'none'; } \
198+ if (go && select.hasAttribute('data-autosubmit')) { window.__inOwn(go, [], ['style']); go.style.display = 'none'; } \
200199 var panel = document.createElement('div');\
201200 panel.className = 'dd-panel';\
202201 panel.setAttribute('role', 'listbox');\
crates/in-web/src/files.rsmodified+99 -9
@@ -484,7 +484,7 @@ async fn view_file(cx: &Cx) -> Result {
484484 <a class="quiet" href="/drive">(t(language, Key::BackToDrive))</a>
485485 <div class="spacer"></div>
486486 if may_download {
487- <a class="primary" href=(download_href)>(t(language, Key::Download))</a>
487+ <a class="primary" href=(download_href) download="">(t(language, Key::Download))</a>
488488 }
489489 </div>
490490 <h1 class="settings-title viewer-title">(entry_chip(cx, &file).await?) (file.name.clone())</h1>
@@ -495,8 +495,33 @@ async fn view_file(cx: &Cx) -> Result {
495495 if matches!(viewer_kind(&file.mime), Some(ViewerKind::Image | ViewerKind::Video | ViewerKind::Audio)) || may_download {
496496 match viewer_kind(&file.mime) {
497497 Some(ViewerKind::Image) => <img class="viewer-media" src=(src.clone()) alt=(file.name.clone()) draggable="false">,
498- Some(ViewerKind::Video) => <video class="viewer-media" src=(src.clone()) controls="" controlslist="nodownload" preload="metadata"></video>,
499- Some(ViewerKind::Audio) => <div class="viewer-audio-wrap"><audio class="viewer-audio" src=(src.clone()) controls="" controlslist="nodownload" preload="metadata"></audio></div>,
498+ Some(ViewerKind::Video) => <div class="media-player media-player-video">
499+ <video class="media-el viewer-video" src=(src.clone()) preload="metadata"></video>
500+ <div class="media-controls">
501+ <button type="button" class="media-play" aria-label=(t(language, Key::Play))
502+ data-play=(t(language, Key::Play)) data-pause=(t(language, Key::Pause))>
503+ <svg class="glyph glyph-play" width="14" height="14" viewBox="0 0 16 16" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 3.5v9l7.5-4.5z"></path></svg>
504+ <svg class="glyph glyph-pause" width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5.5 3.5v9M10.5 3.5v9"></path></svg>
505+ </button>
506+ <span class="media-time media-now">"0:00"</span>
507+ <input class="media-seek" type="range" min="0" max="1000" value="0" aria-label=(file.name.clone())>
508+ <span class="media-time media-dur">"0:00"</span>
509+ <button type="button" class="media-full" aria-label=(t(language, Key::Fullscreen))>
510+ <svg class="glyph" width="13" height="13" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true"><path d="M6 2H2v4M10 2h4v4M14 10v4h-4M2 10v4h4"></path></svg>
511+ </button>
512+ </div>
513+ </div>,
514+ Some(ViewerKind::Audio) => <div class="media-player">
515+ <button type="button" class="media-play" aria-label=(t(language, Key::Play))
516+ data-play=(t(language, Key::Play)) data-pause=(t(language, Key::Pause))>
517+ <svg class="glyph glyph-play" width="14" height="14" viewBox="0 0 16 16" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" aria-hidden="true"><path d="M5.5 3.5v9l7.5-4.5z"></path></svg>
518+ <svg class="glyph glyph-pause" width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5.5 3.5v9M10.5 3.5v9"></path></svg>
519+ </button>
520+ <span class="media-time media-now">"0:00"</span>
521+ <input class="media-seek" type="range" min="0" max="1000" value="0" aria-label=(file.name.clone())>
522+ <span class="media-time media-dur">"0:00"</span>
523+ <audio class="media-el" src=(src.clone()) preload="metadata"></audio>
524+ </div>,
500525 Some(ViewerKind::Pdf) => <object class="viewer-media viewer-pdf" data=(src.clone()) type="application/pdf">
501526 <p class="field-note">(t(language, Key::PreviewUnavailable))</p>
502527 </object>,
@@ -531,16 +556,81 @@ async fn view_file(cx: &Cx) -> Result {
531556 </div>
532557 </section>
533558 </main>
559+ (media_player_script(cx).await?)
534560 (viewer_guard_script(cx).await?)
535561 }
536562 }
537563
538-/// The preview's save-path cleanup: the media elements already carry no
539-/// download affordance (`controlslist="nodownload"`, `draggable="false"`),
540-/// and this drops the context menu over the stage, so "save as" never
541-/// opens on a preview. A page's bytes on the wire can always be captured —
542-/// this keeps the surface from offering it, which is what a view-only
543-/// grant promises.
564+/// The house media player: play toggle, clock, seek bar — and a fullscreen
565+/// button on video — over a controls-less `<audio>`/`<video>`. Native
566+/// controls are the browser's own chrome: they ignore the theme's shape
567+/// language and swallow `Escape` while focused, so the viewer draws its own
568+/// (ported from iz's audio player, one player for both media kinds). Wiring
569+/// is per-player and idempotent (`data-wired`), re-run on `in:wire` so a
570+/// player arriving in a soft page swap still gets its controls.
571+async fn media_player_script(cx: &Cx) -> Result {
572+ use topcoat::view::Unescaped;
573+ const JS: &str = "\
574+ (function () { \
575+ if (window.__inMediaWired) { return; } \
576+ window.__inMediaWired = true; \
577+ function wireAll() { document.querySelectorAll('.media-player').forEach(wirePlayer); } \
578+ function wirePlayer(player) { \
579+ if (player.dataset.wired) { return; } \
580+ window.__inOwn(player, [], ['data-wired']); \
581+ player.dataset.wired = '1'; \
582+ var media = player.querySelector('.media-el'); \
583+ var play = player.querySelector('.media-play'); \
584+ var seek = player.querySelector('.media-seek'); \
585+ var now = player.querySelector('.media-now'); \
586+ var dur = player.querySelector('.media-dur'); \
587+ var full = player.querySelector('.media-full'); \
588+ function clock(s) { \
589+ if (!isFinite(s)) { return '0:00'; } \
590+ var m = Math.floor(s / 60); \
591+ var r = Math.floor(s % 60); \
592+ return m + ':' + (r < 10 ? '0' : '') + r; \
593+ } \
594+ function toggle() { if (media.paused) { media.play(); } else { media.pause(); } } \
595+ play.addEventListener('click', toggle); \
596+ /* The video surface itself toggles too — the house bar is the \
597+ only chrome, so the picture keeps the habit. */ \
598+ if (media.tagName === 'VIDEO') { media.addEventListener('click', toggle); } \
599+ media.addEventListener('play', function () { \
600+ window.__inOwn(player, ['media-playing'], []); \
601+ player.classList.add('media-playing'); \
602+ play.setAttribute('aria-label', play.getAttribute('data-pause')); \
603+ }); \
604+ media.addEventListener('pause', function () { \
605+ player.classList.remove('media-playing'); \
606+ play.setAttribute('aria-label', play.getAttribute('data-play')); \
607+ }); \
608+ media.addEventListener('loadedmetadata', function () { dur.textContent = clock(media.duration); }); \
609+ media.addEventListener('timeupdate', function () { \
610+ now.textContent = clock(media.currentTime); \
611+ if (media.duration) { seek.value = media.currentTime / media.duration * 1000; } \
612+ }); \
613+ seek.addEventListener('input', function () { \
614+ if (media.duration) { media.currentTime = seek.value / 1000 * media.duration; } \
615+ }); \
616+ if (full) { \
617+ full.addEventListener('click', function () { \
618+ if (document.fullscreenElement) { document.exitFullscreen(); } \
619+ else if (player.requestFullscreen) { player.requestFullscreen(); } \
620+ }); \
621+ } \
622+ } \
623+ wireAll(); \
624+ document.addEventListener('in:wire', wireAll); \
625+ })();";
626+ view! { cx => <script>(Unescaped::new_unchecked(JS))</script> }
627+}
628+
629+/// The preview's save-path cleanup: the house media player carries no
630+/// download affordance, images are not draggable, and this drops the
631+/// context menu over the stage, so "save as" never opens on a preview.
632+/// A page's bytes on the wire can always be captured — this keeps the
633+/// surface from offering it, which is what a view-only grant promises.
544634 async fn viewer_guard_script(cx: &Cx) -> Result {
545635 use topcoat::view::Unescaped;
546636 const JS: &str = "\
crates/in-web/src/i18n.rsmodified+9 -4
@@ -124,6 +124,9 @@ pub enum Key {
124124 // File view.
125125 FileDetails,
126126 PreviewUnavailable,
127+ Play,
128+ Pause,
129+ Fullscreen,
127130 RenameFile,
128131 DeleteFile,
129132 // Share.
@@ -204,8 +207,6 @@ pub enum Key {
204207 KindFolders,
205208 KindFiles,
206209 DeletedLabel,
207- // Settings limits redesign (SettingsBuild owns this block).
208- UploadLimitSection,
209210 // Per-entry share page (ShareBuild owns this block).
210211 CreateLink,
211212 ExpiresInDays,
@@ -275,6 +276,9 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
275276 RetryUpload => "Try again",
276277 FileDetails => "File",
277278 PreviewUnavailable => "No preview for this kind of file.",
279+ Play => "Play",
280+ Pause => "Pause",
281+ Fullscreen => "Fullscreen",
278282 RenameFile => "Rename file",
279283 DeleteFile => "Delete file",
280284 Share => "Share",
@@ -354,7 +358,6 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
354358 KindFolders => "Folders",
355359 DeletedLabel => "Deleted",
356360 KindFiles => "Files",
357- UploadLimitSection => "Upload limit — applies to everyone.",
358361 CreateLink => "Create link",
359362 ExpiresInDays => "Expires in days",
360363 NoShares => "Not shared with anyone yet.",
@@ -415,6 +418,9 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
415418 RenameFile => "Dosyayı yeniden adlandır",
416419 DeleteFile => "Dosyayı sil",
417420 Share => "Paylaş",
421+ Play => "Oynat",
422+ Pause => "Duraklat",
423+ Fullscreen => "Tam ekran",
418424 ShareLink => "Paylaşım bağlantısı",
419425 CopyLink => "Bağlantıyı kopyala",
420426 RevokeLink => "Bağlantıyı iptal et",
@@ -484,7 +490,6 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
484490 KindFolders => "Klasörler",
485491 KindFiles => "Dosyalar",
486492 DeletedLabel => "Silindi",
487- UploadLimitSection => "Yükleme sınırı — herkes için geçerlidir.",
488493 CreateLink => "Bağlantı oluştur",
489494 Copied => "Kopyalandı",
490495 WhoHasAccess => "Erişimi olanlar",
crates/in-web/src/layout.rsmodified+2 -2
@@ -294,7 +294,7 @@ pub async fn topbar(cx: &Cx, active: NavPage, user: &User, lang: Lang) -> Result
294294 /// click listener — registered after the close/scrim one, and skipped when
295295 /// that one already `preventDefault`ed — fetches the href and swaps it in
296296 /// under a `history.pushState`, so folder rows and file chips no longer
297-/// reload the page. Raw `/files/` byte routes, `download`/`target`/
297+/// reload the page. Raw byte routes (`/file/<id>`, `/files`), `download`/
298298 /// `data-hard` links and modified clicks (ctrl/meta/shift/alt, non-left
299299 /// button) stay browser-native. `popstate` replays the same fetch without
300300 /// pushing. Fresh-URL navigations pass `swap`'s third argument to scroll
@@ -651,7 +651,7 @@ pub async fn soft_nav_script(cx: &Cx) -> Result {
651651 var link = e.target.closest ? e.target.closest('a') : null; \
652652 if (!link || link.hasAttribute('download') || link.hasAttribute('target') || link.hasAttribute('data-hard')) { return; } \
653653 var href = link.getAttribute('href'); \
654- if (!href || href.charAt(0) !== '/' || href.indexOf('/files/') === 0) { return; } \
654+ if (!href || href.charAt(0) !== '/' || href.indexOf('/files/') === 0 || href.indexOf('/file/') === 0) { return; } \
655655 e.preventDefault(); \
656656 var n = navStep(); \
657657 fetch(href).then( \
crates/in-web/src/settings.rsmodified+18 -11
@@ -416,7 +416,7 @@ async fn settings(cx: &Cx) -> Result {
416416 <th class="member-col-name" scope="col">(t(language, Key::NameColumn))</th>
417417 <th class="member-col-address" scope="col">(t(language, Key::EmailAddress))</th>
418418 <th class="member-col-account" scope="col">(t(language, Key::QuotaUsage))</th>
419- <th class="member-col-role" scope="col"></th>
419+ <th class="member-col-quota" scope="col">(t(language, Key::QuotaBytes))</th>
420420 </tr>
421421 </thead>
422422 <tbody>
@@ -435,7 +435,7 @@ async fn settings(cx: &Cx) -> Result {
435435 </td>
436436 <td class="member-col-address member-address">(listed.email.clone())</td>
437437 <td class="member-col-account member-account">(format!("{} {} {}", human_bytes(listed.used_bytes), t(language, Key::QuotaOf), human_bytes(listed.quota_bytes)))</td>
438- <td class="member-col-role">
438+ <td class="member-col-quota">
439439 <form class="pop-row-form member-quota" method="post" action="/api/settings/quota">
440440 <input type="hidden" name="user_id" value=(listed.id.clone())>
441441 <input class="field-input" type="number" name="quota" min="0" step="any" value=(bytes_as_unit(listed.quota_bytes).0) aria-label=(t(language, Key::QuotaBytes))>
@@ -445,6 +445,8 @@ async fn settings(cx: &Cx) -> Result {
445445 </select>
446446 <button class="quiet" type="submit">(t(language, Key::SetQuota))</button>
447447 </form>
448+ </td>
449+ <td class="member-col-role">
448450 if listed.id != fresh.id {
449451 <form class="pop-row-form" method="post" action="/api/settings/disable">
450452 <input type="hidden" name="user_id" value=(listed.id.clone())>
@@ -464,16 +466,21 @@ async fn settings(cx: &Cx) -> Result {
464466 </table>
465467 </div>
466468 if let Some(limit) = upload_limit {
467- <form class="pop-row-form member-quota" method="post" action="/api/settings/upload-limit">
468- <span class="field-note">(t(language, Key::UploadLimitSection))</span>
469+ // The instance-wide limit, one labeled row under the member table —
470+ // same compact amount+unit form the per-user quota cells use.
471+ <div class="upload-limit">
472+ <span class="field-label">(t(language, Key::MaxUploadBytes))</span>
469473 <span class="field-note">(format!("{}: {}", t(language, Key::CurrentUploadLimit), human_bytes(limit)))</span>
470- <input class="field-input" type="number" name="max_upload" min="0" step="any" value=(bytes_as_unit(limit).0) aria-label=(t(language, Key::MaxUploadBytes))>
471- <select class="field-input" name="max_upload_unit" aria-label=(t(language, Key::MaxUploadBytes))>
472- <option value="MiB" selected=(bytes_as_unit(limit).1 == "MiB")>"MiB"</option>
473- <option value="GiB" selected=(bytes_as_unit(limit).1 == "GiB")>"GiB"</option>
474- </select>
475- <button class="quiet" type="submit">(t(language, Key::Save))</button>
476- </form>
474+ <div class="spacer"></div>
475+ <form class="pop-row-form member-quota" method="post" action="/api/settings/upload-limit">
476+ <input class="field-input" type="number" name="max_upload" min="0" step="any" value=(bytes_as_unit(limit).0) aria-label=(t(language, Key::MaxUploadBytes))>
477+ <select class="field-input" name="max_upload_unit" aria-label=(t(language, Key::MaxUploadBytes))>
478+ <option value="MiB" selected=(bytes_as_unit(limit).1 == "MiB")>"MiB"</option>
479+ <option value="GiB" selected=(bytes_as_unit(limit).1 == "GiB")>"GiB"</option>
480+ </select>
481+ <button class="quiet" type="submit">(t(language, Key::Save))</button>
482+ </form>
483+ </div>
477484 }
478485 </div>
479486 </section>
style/main.scssmodified+93 -34
@@ -1295,10 +1295,11 @@ img.avatar {
12951295
12961296 .viewer-media { max-width: 100%; max-height: 78vh; border-radius: var(--radius-md); }
12971297
1298-// The house audio player: the native pill is browser chrome — it ignores the
1299-// theme's shape language and swallows Escape while focused, so the viewer
1300-// draws its own controls over a hidden `<audio>`.
1301-.audio-player {
1298+// The house media player: the native controls are browser chrome — they
1299+// ignore the theme's shape language and swallow Escape while focused, so the
1300+// viewer draws its own over a controls-less element. One player serves both
1301+// kinds: audio is the bar alone, video stacks the bar under the picture.
1302+.media-player {
13021303 display: flex;
13031304 align-items: center;
13041305 gap: 12px;
@@ -1308,10 +1309,42 @@ img.avatar {
13081309 border: 1px solid var(--border);
13091310 border-radius: var(--radius-md);
13101311
1311- .audio-el { display: none; }
1312+ .media-el { display: none; }
13121313 }
13131314
1314-.audio-play {
1315+.media-player-video {
1316+ flex-direction: column;
1317+ align-items: stretch;
1318+ gap: 0;
1319+ width: 100%;
1320+ // No card of its own: the viewer stage already frames it.
1321+ padding: 0;
1322+ border: none;
1323+ background: none;
1324+
1325+ // The controls bar lives under the picture, and the page chrome (topbar,
1326+ // head, title, meta, stage padding) takes ~330px above it: the picture's
1327+ // cap pays for both, so player and bar land on screen together.
1328+ .media-el {
1329+ display: block;
1330+ width: 100%;
1331+ height: auto;
1332+ max-height: calc(100vh - 380px);
1333+ border-radius: var(--radius-md);
1334+ background: #000;
1335+ cursor: pointer;
1336+ }
1337+}
1338+
1339+.media-controls {
1340+ display: flex;
1341+ align-items: center;
1342+ gap: 12px;
1343+ padding: 10px 16px;
1344+ border-top: 1px solid var(--border);
1345+}
1346+
1347+.media-play {
13151348 display: grid;
13161349 place-items: center;
13171350 width: 32px;
@@ -1328,12 +1361,12 @@ img.avatar {
13281361 &:hover { border-color: var(--accent-strong); }
13291362 }
13301363
1331-.audio-playing .audio-play {
1364+.media-playing .media-play {
13321365 .glyph-play { display: none; }
13331366 .glyph-pause { display: block; }
13341367 }
13351368
1336-.audio-time {
1369+.media-time {
13371370 font-family: var(--font-mono);
13381371 font-size: 12px;
13391372 color: var(--muted);
@@ -1341,7 +1374,7 @@ img.avatar {
13411374 text-align: center;
13421375 }
13431376
1344-.audio-seek {
1377+.media-seek {
13451378 flex: 1;
13461379 appearance: none;
13471380 height: 4px;
@@ -1380,6 +1413,32 @@ img.avatar {
13801413 }
13811414 }
13821415
1416+.media-full {
1417+ display: grid;
1418+ place-items: center;
1419+ width: 28px;
1420+ height: 28px;
1421+ flex: none;
1422+ padding: 0;
1423+ border: none;
1424+ border-radius: var(--radius);
1425+ background: none;
1426+ color: var(--muted);
1427+ cursor: pointer;
1428+
1429+ &:hover { background: var(--row-hover); color: var(--ink); }
1430+}
1431+
1432+// Fullscreen re-frames the same player: the picture takes the screen and the
1433+// bar settles at its bottom.
1434+.media-player-video:fullscreen {
1435+ width: 100%;
1436+ max-width: none;
1437+ background: #000;
1438+
1439+ .media-el { height: calc(100% - 48px); max-height: none; object-fit: contain; border-radius: 0; }
1440+}
1441+
13831442 .viewer-pdf { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: var(--radius-md); }
13841443
13851444 // A workbook has no element of its own, so the viewer draws it: a tab strip
@@ -3429,6 +3488,7 @@ input[type="radio"] {
34293488 // `width: 1%` is how a table cell asks for its intrinsic width.
34303489 .member-col-name,
34313490 .member-col-role,
3491+ .member-col-quota,
34323492 .member-col-account {
34333493 width: 1%;
34343494 white-space: nowrap;
@@ -4357,17 +4417,9 @@ input[type="radio"] {
43574417
43584418 // -- file viewer page ------------------------------------------------------------
43594419 // GET /view/{id}: the preview on its own page. The media elements reuse the
4360-// in-app viewer classes (.viewer-media, .viewer-pdf); the stage centers
4361-// them, the audio element takes a readable width, and the text frame wears
4362-// the pdf box's shape.
4363-.viewer-stage {
4364- display: flex;
4365- justify-content: center;
4366- margin: 16px 0;
4367-}
4368-
4369-.viewer-audio { width: min(480px, 100%); }
4370-
4420+// in-app viewer classes (.viewer-media, .viewer-pdf); the text frame wears
4421+// the pdf box's shape. The stage card itself is defined with viewer-details
4422+// below — one rule, not two that must agree.
43714423 .viewer-text {
43724424 width: 100%;
43734425 height: 70vh;
@@ -4587,8 +4639,8 @@ input[type="radio"] {
45874639 // capped at the modal viewer's width so media never sprawls into a full-width
45884640 // slab at desktop sizes. Video/images shrink to fit the viewport (70vh, the
45894641 // same proportion as the modal's 78vh minus the page chrome); text and pdf
4590-// fill the card in the same chrome. The native audio pill ignores the theme's
4591-// shape language, so it sits in a sunken wrap at a readable width instead.
4642+// fill the card in the same chrome. Media plays through the house
4643+// `.media-player` — the native pill is gone from the page entirely.
45924644 .viewer-head {
45934645 display: flex;
45944646 align-items: center;
@@ -4599,6 +4651,9 @@ input[type="radio"] {
45994651 .viewer-title { overflow-wrap: anywhere; }
46004652
46014653 .viewer-stage {
4654+ display: flex;
4655+ flex-direction: column;
4656+ justify-content: center;
46024657 width: 100%;
46034658 max-width: min(100%, 960px);
46044659 margin: 16px auto;
@@ -4630,18 +4685,6 @@ input[type="radio"] {
46304685 max-height: 70vh;
46314686 }
46324687
4633-.viewer-audio-wrap {
4634- width: min(560px, 100%);
4635- display: flex;
4636- justify-content: center;
4637- padding: 12px 16px;
4638- background: var(--surface-sunken);
4639- border: 1px solid var(--border);
4640- border-radius: var(--radius-md);
4641-}
4642-
4643-.viewer-audio-wrap .viewer-audio { width: 100%; }
4644-
46454688 // -- row polish (RowBuild) ------------------------------------------------------------
46464689 // Single-line discipline for the drive/trash/shared rows, the anchored options
46474690 // menu, and progress rows inside the corner stack. One contiguous section;
@@ -4729,6 +4772,22 @@ input[type="radio"] {
47294772 width: auto;
47304773 flex: none;
47314774 }
4775+.member-quota button.field-input {
4776+ width: auto;
4777+ flex: none;
4778+}
4779+
4780+// The instance-wide upload limit: one labeled row under the register, the
4781+// same compact amount+unit form the quota cells use.
4782+.upload-limit {
4783+ display: flex;
4784+ align-items: center;
4785+ gap: 10px;
4786+ flex-wrap: wrap;
4787+ margin-top: 14px;
4788+ padding-top: 14px;
4789+ border-top: 1px solid var(--border);
4790+}
47324791 .member-table .member-col-address {
47334792 min-width: 26ch;
47344793 }