oficina / meet Public

Calls: the paused cover has a class of its own, so a tile has one camera-off cover (spec 15.30)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 568c0b05efa705ee55d99d86293722e8c90f65b3 parent b0e2252
2 files changed, +13 −13
  • internal/calls/static/calls.css +12 −12
  • internal/calls/static/room.js +1 −1
diff --git a/internal/calls/static/calls.css b/internal/calls/static/calls.css
index 0987246..14b6b3d 100644
--- a/internal/calls/static/calls.css
+++ b/internal/calls/static/calls.css
@@ -761,7 +761,7 @@ body:has(> .calls-window) { background: var(--rst-bg); }
translate: 0 calc(-1 * var(--calls-lift));
}
/* What the stage's camera-off cover keeps clear of: that caption, lifted. */
-.calls-window #tiles[data-layout='speaker'] > [data-stage] > .calls-tile-off {
+.calls-window #tiles[data-layout='speaker'] > [data-stage] > .calls-tile-off, .calls-window #tiles[data-layout='speaker'] > [data-stage] > .calls-tile-pause {
--calls-caption-clear: calc(12px + 2rem + var(--calls-band) + var(--calls-lift));
}
@@ -883,7 +883,7 @@ body:has(> .calls-window) { background: var(--rst-bg); }
}
.calls-tile-muted .icon { inline-size: 1em; block-size: 1em; }
.calls-tile-muted[hidden],
-.calls-tile-off[hidden] { display: none; }
+.calls-tile-off[hidden], .calls-tile-pause[hidden] { display: none; }
/* A camera that is off sends black frames, or holds the last one. The
cover says what that is instead of leaving a frozen face or a black
@@ -898,7 +898,7 @@ body:has(> .calls-window) { background: var(--rst-bg); }
caption's clearance (--calls-caption-clear), when flexbox holds it at
that and gives the rest to the upper one. The native apps'
PlaceholderPlacement is the same rule. */
-.calls-tile-off {
+.calls-tile-off, .calls-tile-pause {
--calls-caption-clear: 2.75rem;
position: absolute;
inset: 0;
@@ -909,15 +909,15 @@ body:has(> .calls-window) { background: var(--rst-bg); }
color: rgb(255 255 255 / 0.8);
font-size: var(--rst-fs-sm);
}
-.calls-tile-off::before,
-.calls-tile-off::after {
+.calls-tile-off::before, .calls-tile-pause::before,
+.calls-tile-off::after, .calls-tile-pause::after {
content: '';
flex: 1 1 0;
}
-.calls-tile-off::after { min-block-size: var(--calls-caption-clear); }
-.calls-tile-off > * { flex: none; }
-.calls-tile-off > * + * { margin-block-start: 8px; }
-.calls-tile-off .icon { inline-size: 2rem; block-size: 2rem; }
+.calls-tile-off::after, .calls-tile-pause::after { min-block-size: var(--calls-caption-clear); }
+.calls-tile-off > *, .calls-tile-pause > * { flex: none; }
+.calls-tile-off > * + *, .calls-tile-pause > * + * { margin-block-start: 8px; }
+.calls-tile-off .icon, .calls-tile-pause .icon { inline-size: 2rem; block-size: 2rem; }
.calls-tile-camera-off .calls-tile-name { z-index: 1; }
/* Spec §15.30: "Low bandwidth" beside the name while this browser asks
@@ -1033,7 +1033,7 @@ body:has(> .calls-window) { background: var(--rst-bg); }
font-size: var(--rst-fs-xs);
}
.calls-tile-name > span:first-child { flex: 0 1 auto; min-inline-size: 0; }
- .calls-tile-off { --calls-caption-clear: 2rem; }
+ .calls-tile-off, .calls-tile-pause { --calls-caption-clear: 2rem; }
.calls-tile-name > :not(:first-child) { flex: none; }
.calls-tile-low:not([hidden]) {
position: absolute;
@@ -1053,7 +1053,7 @@ body:has(> .calls-window) { background: var(--rst-bg); }
}
}
@container (max-width: 15rem) {
- .calls-tile-off > :not(svg) {
+ .calls-tile-off > :not(svg), .calls-tile-pause > :not(svg) {
position: absolute;
inline-size: 1px;
block-size: 1px;
@@ -1063,7 +1063,7 @@ body:has(> .calls-window) { background: var(--rst-bg); }
}
}
@container (max-width: 9rem) {
- .calls-tile-off .icon { inline-size: 1.25rem; block-size: 1.25rem; }
+ .calls-tile-off .icon, .calls-tile-pause .icon { inline-size: 1.25rem; block-size: 1.25rem; }
}
/* The speaking light on the name, which replaced the ring round the
diff --git a/internal/calls/static/room.js b/internal/calls/static/room.js
index 9e1595b..26f7b1c 100644
--- a/internal/calls/static/room.js
+++ b/internal/calls/static/room.js
@@ -7314,7 +7314,7 @@
if (badgeMark) badge.append(badgeMark.content.cloneNode(true));
else badge.textContent = 'Low bandwidth';
const cover = document.createElement('div');
- cover.className = 'calls-tile-off calls-tile-video-paused-cover';
+ cover.className = 'calls-tile-pause calls-tile-video-paused-cover';
cover.hidden = true;
const coverMark = $('tile-video-paused');
if (coverMark) cover.append(coverMark.content.cloneNode(true));