fix: Lock the grid when the UI is locked (#2489)
This commit is contained in:
committed by
dermotduffy
parent
881ba51e9f
commit
090138a01e
@@ -43,7 +43,7 @@ export class AdvancedCameraCardLiveGrid extends LitElement {
|
||||
@property({ attribute: false })
|
||||
public call?: CallSession;
|
||||
|
||||
@property({ attribute: false })
|
||||
@property({ type: Boolean, reflect: true })
|
||||
public locked?: boolean;
|
||||
|
||||
@property({ attribute: false, hasChanged: contentsChanged })
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@use 'basic-block.scss';
|
||||
@use 'locked.scss';
|
||||
|
||||
@keyframes warning-pulse {
|
||||
0% {
|
||||
@@ -46,6 +47,12 @@ advanced-camera-card-live-carousel[triggered] {
|
||||
animation: none;
|
||||
border-color: var(--advanced-camera-card-transmitting-border-color);
|
||||
}
|
||||
// While locked, dim and disable interaction on the non-selected cameras in the
|
||||
// grid so input stays on the selected camera (e.g. during a call).
|
||||
:host([locked]) advanced-camera-card-live-carousel[unselected] {
|
||||
@include locked.style;
|
||||
}
|
||||
|
||||
advanced-camera-card-live-carousel[selected] {
|
||||
--trigger-border-color-base: var(
|
||||
--advanced-camera-card-trigger-border-color-base,
|
||||
|
||||
Reference in New Issue
Block a user