A share started from the picker reported its failure in the page banner, away from the control that started it. The failure now appears in the share control's existing wait slot, where the system picker and picture preparation are already announced, with a dismiss button. It clears on the next start, on dismissal, or when another room is selected. The picker closes before the start runs, and the room's share control unmounts or moves to the share's tile once a publication appears, so the page owns the result through useSettingsAction keyed to the room and hands it to every ChannelShareControl as startAction. Browser, camera, App and OBS starts from the picker pass the session's function form of reportError, so a failure that arrives after a room change still reaches the banner rather than being dropped. Starts from the share settings popover and all other failures still go to the banner; the messages per failure code are unchanged because both surfaces use channelErrorPresentation. The ChannelShareControl renders in tests/app-connection-button.test.ts now pass an idle startAction, as the component requires one; their expectations are unchanged. Verified with npx tsc -b --pretty false and npx vitest run tests/app-connection-button.test.ts tests/channel-session.test.ts, with new tests that a control-owned start leaves the banner empty unless its owner is gone and that the wait slot shows the failure and yields to a new preparation.
58 lines
3.4 KiB
CSS
58 lines
3.4 KiB
CSS
.c3-share-control { display: inline-flex; gap: 8px; }
|
|
.c3-share-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
|
|
.c3-share-feedback { display: inline-flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
|
|
.c3-share-wait { max-width: 34ch; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.5; }
|
|
.c3-share-failure { display: inline-flex; align-items: center; gap: 4px; }
|
|
.c3-share-failure > .c3-settings-error { margin: 0; }
|
|
.c3-watch-forward-settings { padding: 16px 18px; }
|
|
.c3-external-input, .c3-external-input-field { display: grid; gap: 10px; min-width: 0; }
|
|
.c3-external-input p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
|
|
.c3-external-input-field label { font-size: 12px; font-weight: 650; }
|
|
.c3-external-input-field > div { display: flex; gap: 8px; min-width: 0; }
|
|
.c3-external-input-field input { min-width: 0; flex: 1; }
|
|
.c3-external-input-field .lr-btn { flex: none; }
|
|
.c3-external-input > .lr-btn { justify-self: start; }
|
|
.c3-watch-source-dialog .c3-settings-content > .c3-external-input { display: flex; flex-direction: column; padding-block-start: 6px; }
|
|
.c3-watch-source-dialog .c3-settings-content > .c3-external-input > * { flex-shrink: 0; }
|
|
.c3-watch-source-dialog .c3-external-input > .lr-btn { align-self: start; }
|
|
.c3-watch-source-list { gap: 12px; }
|
|
.c3-watch-source-choice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
|
|
.c3-watch-source-choice > .lr-btn { justify-self: start; }
|
|
.c3-watch-source-alternative { border-block-start: 1px solid var(--line); padding-block-start: 8px; }
|
|
.lr-anchored-card.c3-quality-picker {
|
|
width: min(640px, calc(100vw - 16px)); max-height: calc(100dvh - 16px);
|
|
padding: 0; overflow: hidden;
|
|
}
|
|
.c3-quality-picker:popover-open { display: grid; grid-template-rows: auto minmax(0, 1fr); }
|
|
.c3-quality-body { overflow: auto; overscroll-behavior: contain; }
|
|
.c3-quality-picker .lr-sharing-panel { margin: 0; border: 0; border-radius: inherit; box-shadow: none; animation: none; }
|
|
.c3-quality-picker > .c3-quality-heading {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
|
padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line);
|
|
}
|
|
.c3-quality-heading h3 { margin: 0; font-size: 16px; }
|
|
.c3-quality-description { margin: 0; padding: 12px 18px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
|
.lr-anchored-card.c3-share-picker {
|
|
width: min(720px, calc(100vw - 16px));
|
|
max-height: min(560px, calc(100dvh - 16px));
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
.c3-share-picker:popover-open { display: grid; grid-template-rows: minmax(0, 1fr); }
|
|
.c3-share-picker > .lr-source-picker {
|
|
position: relative;
|
|
inset: auto;
|
|
height: auto;
|
|
min-height: 0;
|
|
border-radius: inherit;
|
|
}
|
|
.c3-share-picker .lr-source-picker-panel { height: auto; }
|
|
|
|
.c3-share-title { margin: 14px 18px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
|
|
.c3-share-title summary { cursor: pointer; font-weight: 650; padding-block: 6px; }
|
|
.c3-share-title form { display: grid; gap: 8px; padding-top: 10px; }
|
|
.c3-share-title form > label { font-size: 11px; color: var(--muted); }
|
|
.c3-share-title .lr-input, .c3-share-title input { width: 100%; min-width: 0; }
|
|
.c3-share-title p { margin: 0; color: var(--muted); line-height: 1.6; }
|
|
.c3-share-title-actions { display: flex; flex-wrap: wrap; gap: 6px; }
|