Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4524291

Browse files
authored
Fix the picture-in-picture component being off screen (#9246)
1 parent 6d03cb3 commit 4524291

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

cypress/e2e/widgets/widget-pip-close.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe("Widget PIP", () => {
141141
win.mxActiveWidgetStore.setWidgetPersistence(DEMO_WIDGET_ID, roomId, true);
142142

143143
// checks that pip window is opened
144-
cy.get(".mx_CallView_pip").should("exist");
144+
cy.get(".mx_LegacyCallView_pip").should("exist");
145145

146146
// checks that widget is opened in pip
147147
cy.accessIframe(`iframe[title="${DEMO_WIDGET_NAME}"]`).within({}, () => {
@@ -158,7 +158,7 @@ describe("Widget PIP", () => {
158158
}
159159

160160
// checks that pip window is closed
161-
cy.get(".mx_CallView_pip").should("not.exist");
161+
cy.get(".mx_LegacyCallView_pip").should("not.exist");
162162
});
163163
});
164164
});

res/css/views/right_panel/_TimelineCard.pcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ limitations under the License.
143143
}
144144
}
145145

146-
.mx_CallEvent_wrapper {
146+
.mx_LegacyCallEvent_wrapper {
147147
justify-content: center;
148148
margin: auto 5px;
149-
.mx_CallEvent {
149+
.mx_LegacyCallEvent {
150150
margin: 4px;
151151
}
152152
}

res/css/views/rooms/_EventBubbleTile.pcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ limitations under the License.
154154
}
155155
}
156156

157-
.mx_CallEvent {
157+
.mx_LegacyCallEvent {
158158
background-color: unset;
159159

160160
border-style: solid;
@@ -533,7 +533,7 @@ limitations under the License.
533533
max-width: 100%;
534534
}
535535

536-
.mx_CallEvent_wrapper {
536+
.mx_LegacyCallEvent_wrapper {
537537
justify-content: center;
538538
}
539539
}

src/components/views/voip/PipView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ export default class PipView extends React.Component<IProps, IState> {
319319

320320
if (this.state.showWidgetInPip) {
321321
const pipViewClasses = classNames({
322-
mx_CallView: true,
323-
mx_CallView_pip: pipMode,
324-
mx_CallView_large: !pipMode,
322+
mx_LegacyCallView: true,
323+
mx_LegacyCallView_pip: pipMode,
324+
mx_LegacyCallView_large: !pipMode,
325325
});
326326
const roomId = this.state.persistentRoomId;
327327
const roomForWidget = MatrixClientPeg.get().getRoom(roomId);
@@ -348,7 +348,7 @@ export default class PipView extends React.Component<IProps, IState> {
348348

349349
if (!!pipContent) {
350350
return <PictureInPictureDragger
351-
className="mx_CallPreview"
351+
className="mx_LegacyCallPreview"
352352
draggable={pipMode}
353353
onDoubleClick={this.onDoubleClick}
354354
onMove={this.onMove}

0 commit comments

Comments
 (0)