ontrackd 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/attachmentTypes.d.ts +4 -1
- package/dist/core/attachmentTypes.js +25 -4
- package/dist/core/attachmentTypes.js.map +1 -1
- package/dist/core/feedbackTypes.d.ts +4 -1
- package/dist/core/untrusted.js +3 -2
- package/dist/core/untrusted.js.map +1 -1
- package/dist/integration/middleware.js +11 -0
- package/dist/integration/middleware.js.map +1 -1
- package/dist/overlay/api.d.ts +9 -1
- package/dist/overlay/api.js +10 -2
- package/dist/overlay/api.js.map +1 -1
- package/dist/overlay/camera.d.ts +130 -0
- package/dist/overlay/camera.js +388 -0
- package/dist/overlay/camera.js.map +1 -0
- package/dist/overlay/cameraEffects.d.ts +10 -0
- package/dist/overlay/cameraEffects.js +240 -0
- package/dist/overlay/cameraEffects.js.map +1 -0
- package/dist/overlay/cameraPanel.d.ts +39 -0
- package/dist/overlay/cameraPanel.js +275 -0
- package/dist/overlay/cameraPanel.js.map +1 -0
- package/dist/overlay/cameraPlayback.d.ts +75 -0
- package/dist/overlay/cameraPlayback.js +291 -0
- package/dist/overlay/cameraPlayback.js.map +1 -0
- package/dist/overlay/directReviewer.d.ts +10 -1
- package/dist/overlay/directReviewer.js +22 -9
- package/dist/overlay/directReviewer.js.map +1 -1
- package/dist/overlay/effects/NOTICE.md +10 -0
- package/dist/overlay/effects/selfie_segmenter.tflite +0 -0
- package/dist/overlay/effects/vision_wasm_internal.js +9155 -0
- package/dist/overlay/effects/vision_wasm_internal.wasm +0 -0
- package/dist/overlay/icons.js +8 -1
- package/dist/overlay/icons.js.map +1 -1
- package/dist/overlay/recorder.d.ts +3 -0
- package/dist/overlay/recorder.js +27 -3
- package/dist/overlay/recorder.js.map +1 -1
- package/dist/overlay/recordingEditor.js +6 -5
- package/dist/overlay/recordingEditor.js.map +1 -1
- package/dist/overlay/recordingPlayer.d.ts +11 -1
- package/dist/overlay/recordingPlayer.js +113 -45
- package/dist/overlay/recordingPlayer.js.map +1 -1
- package/dist/overlay/recordingPlayerShell.d.ts +19 -0
- package/dist/overlay/recordingPlayerShell.js +51 -0
- package/dist/overlay/recordingPlayerShell.js.map +1 -0
- package/dist/overlay/runtime.js +324 -31
- package/dist/overlay/runtime.js.map +1 -1
- package/dist/overlay/storageFull.d.ts +16 -0
- package/dist/overlay/storageFull.js +39 -0
- package/dist/overlay/storageFull.js.map +1 -0
- package/dist/overlay/styles.js +88 -20
- package/dist/overlay/styles.js.map +1 -1
- package/dist/overlay/tasks-vision.js +3 -0
- package/dist/overlay/upload.d.ts +2 -2
- package/dist/overlay/upload.js +4 -2
- package/dist/overlay/upload.js.map +1 -1
- package/dist/sidecar/commentFiles.js +4 -2
- package/dist/sidecar/commentFiles.js.map +1 -1
- package/dist/storage/localAttachments.js +1 -1
- package/dist/storage/localAttachments.js.map +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type StorageAction = 'upgrade' | 'buy_storage' | 'free_up_space';
|
|
2
|
+
/**
|
|
3
|
+
* `features.storage` of a session or project read. The Worker decides `actions` by role and sales state, and
|
|
4
|
+
* names the `dashboard` (origin) they lead to: null when it has none, and then the dialog shows no links.
|
|
5
|
+
*/
|
|
6
|
+
export type StorageStatus = {
|
|
7
|
+
used: number;
|
|
8
|
+
limit: number | null;
|
|
9
|
+
full: boolean;
|
|
10
|
+
actions: StorageAction[];
|
|
11
|
+
dashboard: string | null;
|
|
12
|
+
};
|
|
13
|
+
/** Tolerant: an older Worker, a missing or malformed field is "no storage information", never "full". */
|
|
14
|
+
export declare function storageStatusOf(body: unknown): StorageStatus | null;
|
|
15
|
+
/** The "Storage is full" dialog: links only where the dashboard is known, a download for a refused recording. */
|
|
16
|
+
export declare function storageDialogMarkup(status: StorageStatus | null, recordingRefused: boolean): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const ACTIONS = ['upgrade', 'buy_storage', 'free_up_space'];
|
|
2
|
+
const LABELS = { upgrade: 'Upgrade', buy_storage: 'Buy more storage', free_up_space: 'Free up space' };
|
|
3
|
+
const PATHS = { upgrade: '/settings/billing', buy_storage: '/settings/billing', free_up_space: '/settings/storage' };
|
|
4
|
+
/** Tolerant: an older Worker, a missing or malformed field is "no storage information", never "full". */
|
|
5
|
+
export function storageStatusOf(body) {
|
|
6
|
+
const found = body?.features?.storage;
|
|
7
|
+
if (!found || typeof found !== 'object' || typeof found.full !== 'boolean' || !Number.isFinite(found.used))
|
|
8
|
+
return null;
|
|
9
|
+
if (found.limit !== null && !Number.isFinite(found.limit))
|
|
10
|
+
return null;
|
|
11
|
+
const actions = Array.isArray(found.actions) ? found.actions.filter((action) => ACTIONS.includes(action)) : [];
|
|
12
|
+
return { used: Number(found.used), limit: found.limit === null ? null : Number(found.limit), full: found.full, actions, dashboard: originOf(found.dashboard) };
|
|
13
|
+
}
|
|
14
|
+
/** Only an http(s) origin becomes a link: anything else is "no dashboard". */
|
|
15
|
+
function originOf(value) {
|
|
16
|
+
if (typeof value !== 'string')
|
|
17
|
+
return null;
|
|
18
|
+
try {
|
|
19
|
+
const url = new URL(value);
|
|
20
|
+
return url.protocol === 'https:' || url.protocol === 'http:' ? url.origin : null;
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** The "Storage is full" dialog: links only where the dashboard is known, a download for a refused recording. */
|
|
27
|
+
export function storageDialogMarkup(status, recordingRefused) {
|
|
28
|
+
const dashboard = status?.dashboard ?? null;
|
|
29
|
+
const links = dashboard ? (status?.actions ?? []).map((action) => `<a class="fb-storage-dialog__link" data-fb-storage-action="${action}" href="${dashboard}${PATHS[action]}" target="_blank" rel="noopener">${LABELS[action]}</a>`).join('') : '';
|
|
30
|
+
return `<div class="fb-recording-discard fb-storage-dialog" data-fb-storage-dialog role="alertdialog" aria-modal="true" aria-labelledby="fb-storage-title" aria-describedby="fb-storage-text">
|
|
31
|
+
<div class="fb-recording-discard__card">
|
|
32
|
+
<p id="fb-storage-title">Storage is full</p>
|
|
33
|
+
<p id="fb-storage-text" class="fb-storage-dialog__text">${status && status.limit !== null && status.actions.length === 0 ? 'Storage is full. Ask the workspace owner.' : 'This workspace has no room left for new files.'}</p>
|
|
34
|
+
<div>${recordingRefused ? '<button type="button" data-fb-action="download-refused-recording">Download recording</button>' : ''}${links}
|
|
35
|
+
<button type="button" class="fb-recording-discard__keep" data-fb-action="close-storage-dialog">Close</button></div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>`;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=storageFull.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageFull.js","sourceRoot":"","sources":["../../src/overlay/storageFull.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,GAA6B,CAAC,SAAS,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;AACtF,MAAM,MAAM,GAAkC,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AACtI,MAAM,KAAK,GAAkC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAEpJ,yGAAyG;AACzG,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,MAAM,KAAK,GAAI,IAAgF,EAAE,QAAQ,EAAE,OAAO,CAAC;IACnH,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACxH,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;QAA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MAAM,EAAE,EAAE,CAC/D,8DAA8D,MAAM,WAAW,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,oCAAoC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClL,OAAO;;;gEAGuD,MAAM,IAAI,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,2CAA2C,CAAC,CAAC,CAAC,gDAAgD;aAClN,gBAAgB,CAAC,CAAC,CAAC,+FAA+F,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK;;;SAGnI,CAAC;AACV,CAAC"}
|
package/dist/overlay/styles.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordingPlayerStyle } from './recordingPlayerShell.js';
|
|
1
2
|
/**
|
|
2
3
|
* All overlay CSS, scoped by the Shadow DOM root so nothing leaks in either direction.
|
|
3
4
|
*
|
|
@@ -865,8 +866,7 @@ export function overlayStyles() {
|
|
|
865
866
|
[data-fb-file-input] { display: none !important; }
|
|
866
867
|
.fb-attach { flex: none; display: inline-grid; place-items: center; }
|
|
867
868
|
.fb-attach:disabled { opacity: 0.42; cursor: not-allowed; }
|
|
868
|
-
.fb-bar button[data-fb-action="record-journey"] {
|
|
869
|
-
.fb-toolbar-word { font-size: 12px; font-weight: 650; }
|
|
869
|
+
.fb-bar button[data-fb-action="record-journey"] { color: #fff; }
|
|
870
870
|
.fb-record { color: var(--fb-danger); }
|
|
871
871
|
|
|
872
872
|
/* A stopped journey: replay and explanation side by side, protected by its own discard question. */
|
|
@@ -882,23 +882,76 @@ export function overlayStyles() {
|
|
|
882
882
|
.fb-recording-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--fb-line); }
|
|
883
883
|
.fb-recording-dialog__head h2 { margin: 0; font-size: 15px; }
|
|
884
884
|
.fb-recording-dialog__columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; padding: 18px; }
|
|
885
|
-
.fb-recording-dialog__player { min-width: 0;
|
|
885
|
+
.fb-recording-dialog__player { min-width: 0; }
|
|
886
886
|
.fb-recording-dialog__compose { min-width: 0; display: grid; align-content: start; gap: 12px; }
|
|
887
|
-
.fb-recording-editor__toolbar { display: flex;
|
|
888
|
-
.fb-recording-editor__toolbar
|
|
887
|
+
.fb-recording-editor__toolbar { display: flex; align-items: center; gap: 2px; margin-bottom: 7px; }
|
|
888
|
+
.fb-recording-editor__toolbar .fb-icon-btn { width: 30px; height: 30px; border-radius: 7px; }
|
|
889
|
+
.fb-recording-editor__toolbar .fb-attach { margin-left: auto; }
|
|
890
|
+
.fb-recording-dialog__attach:empty { display: none; }
|
|
891
|
+
.fb-recording-dialog__attach { display: flex; justify-content: flex-end; }
|
|
889
892
|
.fb-recording-editor__field { min-height: 150px; max-height: 320px; overflow: auto; padding: 10px 12px; border: 1px solid var(--fb-line); border-radius: 9px; background: #242424; color: var(--fb-text); line-height: 1.5; outline: none; }
|
|
890
893
|
.fb-recording-editor__field:focus { border-color: var(--fb-accent); box-shadow: 0 0 0 2px rgba(59, 130, 246, .2); }
|
|
891
894
|
.fb-recording-dialog__compose .fb-tray { padding: 0; }
|
|
892
|
-
.fb-recording-
|
|
893
|
-
.fb-recording-
|
|
895
|
+
.fb-recording-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--fb-line); }
|
|
896
|
+
.fb-recording-dialog__foot button, .fb-recording-discard__card button { height: 34px; min-width: 84px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
|
|
897
|
+
.fb-recording-dialog__cancel { background: transparent; color: var(--fb-text); box-shadow: inset 0 0 0 1px var(--fb-line); }
|
|
898
|
+
.fb-recording-dialog__cancel:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
|
|
899
|
+
.fb-recording-dialog__save { background: var(--fb-accent); color: #fff; }
|
|
900
|
+
.fb-recording-dialog__save:hover:not(:disabled) { background: #2f76ec; }
|
|
901
|
+
.fb-recording-dialog__foot button:disabled { opacity: 0.42; cursor: not-allowed; }
|
|
902
|
+
.fb-recording-dialog__foot button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
894
903
|
.fb-recording-loading { color: var(--fb-muted); font-size: 12px; }
|
|
895
904
|
.fb-recording-discard { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .68); }
|
|
896
|
-
.fb-recording-discard__card { min-width: 280px; padding: 18px; border: 1px solid var(--fb-line); border-radius:
|
|
905
|
+
.fb-recording-discard__card { min-width: 280px; padding: 18px; border: 1px solid var(--fb-line); border-radius: 14px; background: var(--fb-bg); color: var(--fb-text); box-shadow: 0 24px 70px rgba(0, 0, 0, .62); }
|
|
897
906
|
.fb-recording-discard__card p { margin: 0 0 16px; font-weight: 650; }
|
|
898
907
|
.fb-recording-discard__card div { display: flex; justify-content: flex-end; gap: 8px; }
|
|
899
|
-
.fb-recording-
|
|
900
|
-
.fb-recording-
|
|
901
|
-
.fb-
|
|
908
|
+
.fb-recording-discard__card .fb-recording-discard__keep { background: transparent; color: var(--fb-text); box-shadow: inset 0 0 0 1px var(--fb-line); }
|
|
909
|
+
.fb-recording-discard__card .fb-recording-discard__keep:hover { background: rgba(255, 255, 255, 0.08); }
|
|
910
|
+
.fb-recording-discard__card .fb-recording-discard__drop { background: var(--fb-danger); color: #fff; }
|
|
911
|
+
.fb-recording-discard__card .fb-recording-discard__drop:hover { background: #dc2626; }
|
|
912
|
+
.fb-storage-dialog { position: fixed; z-index: 2147483647; }
|
|
913
|
+
.fb-storage-dialog .fb-recording-discard__card { max-width: 360px; }
|
|
914
|
+
.fb-storage-dialog__text { font-weight: 400 !important; color: var(--fb-muted); }
|
|
915
|
+
.fb-storage-dialog .fb-recording-discard__card div { flex-wrap: wrap; }
|
|
916
|
+
.fb-storage-dialog button, .fb-storage-dialog__link { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 84px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--fb-accent); color: #fff; box-sizing: border-box; }
|
|
917
|
+
.fb-storage-dialog .fb-recording-discard__keep { background: transparent; color: var(--fb-text); box-shadow: inset 0 0 0 1px var(--fb-line); }
|
|
918
|
+
.fb-storage-dialog button:focus-visible, .fb-storage-dialog__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
919
|
+
.fb-camera-panel { position: fixed; z-index: 2147483647; right: 24px; bottom: 84px; width: 320px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--fb-bg); color: var(--fb-text); border: 1px solid var(--fb-line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); font-size: 13px; }
|
|
920
|
+
.fb-camera-panel__title { margin: 0; font-size: 14px; font-weight: 600; }
|
|
921
|
+
.fb-camera-panel__lead { margin: 0; color: var(--fb-muted); font-weight: 400; }
|
|
922
|
+
.fb-camera-panel__preview { aspect-ratio: 1 / 1; width: 140px; align-self: center; border-radius: 50%; overflow: hidden; background: #000; }
|
|
923
|
+
.fb-camera-panel__preview[hidden], .fb-camera-panel [hidden] { display: none !important; }
|
|
924
|
+
.fb-camera-panel__preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
|
|
925
|
+
.fb-camera-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
926
|
+
.fb-camera-panel__switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; flex: none; }
|
|
927
|
+
.fb-camera-panel__switch input { accent-color: var(--fb-accent); width: 16px; height: 16px; margin: 0; }
|
|
928
|
+
.fb-camera-panel select { min-width: 0; flex: 1; max-width: 170px; height: 30px; padding: 0 8px; border: 1px solid var(--fb-line); border-radius: 8px; background: var(--fb-bg); color: var(--fb-text); font: inherit; }
|
|
929
|
+
.fb-camera-panel__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; }
|
|
930
|
+
.fb-camera-panel__meter { height: 6px; border-radius: 3px; background: var(--fb-line); overflow: hidden; --fb-level: 0; }
|
|
931
|
+
.fb-camera-panel__meter span { display: block; height: 100%; width: calc(var(--fb-level) * 100%); background: var(--fb-accent); transition: width 80ms linear; }
|
|
932
|
+
.fb-camera-panel__error { margin: 0; color: #d92d20; font-weight: 500; }
|
|
933
|
+
.fb-camera-panel__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
|
|
934
|
+
.fb-camera-panel__actions button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--fb-accent); color: #fff; }
|
|
935
|
+
.fb-camera-panel__actions .fb-camera-panel__cancel, .fb-camera-panel__actions .fb-camera-panel__page-only { background: transparent; color: var(--fb-text); box-shadow: inset 0 0 0 1px var(--fb-line); }
|
|
936
|
+
.fb-camera-panel button:focus-visible, .fb-camera-panel select:focus-visible, .fb-camera-panel input:focus-visible { outline: 2px solid var(--fb-accent); outline-offset: 2px; }
|
|
937
|
+
.fb-camera-bubble { position: fixed; z-index: 2147483646; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: #000; cursor: grab; touch-action: none; border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); box-sizing: border-box; }
|
|
938
|
+
.fb-camera-bubble[data-dragging] { cursor: grabbing; }
|
|
939
|
+
.fb-camera-bubble video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transform: scaleX(-1); }
|
|
940
|
+
.fb-recording-discard__card button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
941
|
+
.fb-card:has(.fb-recording-thread) { width: min(980px, calc(100vw - 32px)); }
|
|
942
|
+
.fb-recording-thread { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); }
|
|
943
|
+
.fb-recording-thread__media { min-width: 0; padding-bottom: 14px; border-right: 1px solid var(--fb-line); }
|
|
944
|
+
.fb-recording-thread__side { display: flex; flex-direction: column; min-width: 0; }
|
|
945
|
+
.fb-recording-thread__side .fb-card-body { flex: 1 1 auto; max-height: min(460px, calc(100vh - 220px)); padding-top: 10px; }
|
|
946
|
+
.fb-recording-thread-head { display: flex; justify-content: space-between; padding: 12px 14px 0; color: var(--fb-muted); font-size: 12px; }
|
|
947
|
+
.fb-recording-thread-player { margin: 10px 14px 0; }
|
|
948
|
+
${recordingPlayerStyle}
|
|
949
|
+
@media (max-width: 719px) {
|
|
950
|
+
.fb-recording-thread { grid-template-columns: 1fr; }
|
|
951
|
+
.fb-recording-thread__media { border-right: 0; border-bottom: 1px solid var(--fb-line); }
|
|
952
|
+
}
|
|
953
|
+
:host([data-compact]) .fb-recording-thread { grid-template-columns: 1fr; }
|
|
954
|
+
:host([data-compact]) .fb-recording-thread__media { border-right: 0; border-bottom: 1px solid var(--fb-line); }
|
|
902
955
|
@media (max-width: 719px) {
|
|
903
956
|
.fb-recording-dialog { padding: 12px; }
|
|
904
957
|
.fb-recording-dialog__card { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
|
|
@@ -915,16 +968,18 @@ export function overlayStyles() {
|
|
|
915
968
|
font-size: 12.5px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
|
|
916
969
|
}
|
|
917
970
|
.fb-recorder[hidden] { display: none; }
|
|
971
|
+
/* The page dims like it does under a dialog; the number sits on it, white, with no box of its own.
|
|
972
|
+
One layer under the pill, so its Cancel stays on top. */
|
|
918
973
|
.fb-countdown {
|
|
919
|
-
position: fixed;
|
|
920
|
-
display: grid; place-items: center;
|
|
921
|
-
|
|
922
|
-
|
|
974
|
+
position: fixed; inset: 0; z-index: 2147483646; pointer-events: none;
|
|
975
|
+
display: grid; place-items: center; background: rgba(0, 0, 0, .72); color: #fff;
|
|
976
|
+
font-size: 120px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
|
|
977
|
+
text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
|
|
923
978
|
}
|
|
924
979
|
.fb-countdown[hidden] { display: none; }
|
|
925
980
|
.fb-recorder__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fb-danger); animation: fb-recording 1.2s ease-in-out infinite; }
|
|
926
981
|
.fb-recorder__time { font-variant-numeric: tabular-nums; color: var(--fb-muted); }
|
|
927
|
-
.fb-recorder__stop {
|
|
982
|
+
.fb-recorder__stop { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--fb-danger); color: #fff; cursor: pointer; }
|
|
928
983
|
.fb-recorder__stop:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
929
984
|
@keyframes fb-recording { 50% { opacity: 0.25; } }
|
|
930
985
|
@media (prefers-reduced-motion: reduce) { .fb-recorder__dot { animation: none; } }
|
|
@@ -1162,11 +1217,14 @@ export function overlayStyles() {
|
|
|
1162
1217
|
color: var(--fb-text);
|
|
1163
1218
|
}
|
|
1164
1219
|
|
|
1220
|
+
/* Rows take their own height; only the list stretches, whatever filters sit above it. */
|
|
1165
1221
|
.fb-panel-content {
|
|
1166
|
-
display:
|
|
1167
|
-
|
|
1222
|
+
display: flex;
|
|
1223
|
+
flex-direction: column;
|
|
1168
1224
|
height: 100%;
|
|
1169
1225
|
}
|
|
1226
|
+
.fb-panel-content > * { flex: none; }
|
|
1227
|
+
.fb-panel-content > .fb-list { flex: 1 1 auto; min-height: 0; }
|
|
1170
1228
|
|
|
1171
1229
|
/* Rises out of the footer and settles over the list, then leaves on its own. */
|
|
1172
1230
|
.fb-panel-toast {
|
|
@@ -1245,6 +1303,18 @@ export function overlayStyles() {
|
|
|
1245
1303
|
font-weight: 600;
|
|
1246
1304
|
}
|
|
1247
1305
|
.fb-segmented button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.13); color: var(--fb-text); }
|
|
1306
|
+
/* The kind filter is a second question, so it reads as tabs under the status pill, not a copy of it. */
|
|
1307
|
+
.fb-segmented--kind {
|
|
1308
|
+
gap: 16px;
|
|
1309
|
+
margin: -2px 18px 8px;
|
|
1310
|
+
padding: 0;
|
|
1311
|
+
border-radius: 0;
|
|
1312
|
+
background: transparent;
|
|
1313
|
+
box-shadow: inset 0 -1px 0 var(--fb-line);
|
|
1314
|
+
}
|
|
1315
|
+
.fb-segmented--kind button { flex: none; height: 30px; padding: 0 2px; border-radius: 0; }
|
|
1316
|
+
.fb-segmented--kind button:hover { color: var(--fb-text); }
|
|
1317
|
+
.fb-segmented--kind button[aria-pressed="true"] { background: transparent; color: var(--fb-text); box-shadow: inset 0 -2px 0 var(--fb-accent); }
|
|
1248
1318
|
|
|
1249
1319
|
.fb-list { overflow-y: auto; padding: 0 14px 14px; }
|
|
1250
1320
|
|
|
@@ -1468,8 +1538,6 @@ export function overlayStyles() {
|
|
|
1468
1538
|
display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 16px 0; color: var(--fb-muted); font-size: 13px;
|
|
1469
1539
|
}
|
|
1470
1540
|
:host([data-compact]) .fb-listfilter .fb-link { margin-top: 0; }
|
|
1471
|
-
/* The panel is four rows, the list the stretching one: with the filter's row it is five. */
|
|
1472
|
-
:host([data-compact]) .fb-panel-content:has(> .fb-listfilter) { grid-template-rows: auto auto auto 1fr auto; }
|
|
1473
1541
|
/* Sign-in and the name dialog: the scrim, adopted by a full-screen sheet (spec: Sign-in). */
|
|
1474
1542
|
:host([data-compact]) .fb-sheet__body > .fb-scrim {
|
|
1475
1543
|
position: static; display: block; inset: auto; min-height: 100%; background: transparent; backdrop-filter: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/overlay/styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources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