diff --git a/res/css/_common.pcss b/res/css/_common.pcss index c807689dd38..c960b0f4a19 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -56,8 +56,10 @@ limitations under the License. /* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */ contain: strict; } -.mx_Dialog_StaticContainer, -.mx_Dialog_Container { +#mx_ContextualMenu_Container, +#mx_PersistedElement_container, +#mx_Dialog_Container, +#mx_Dialog_StaticContainer { /* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */ isolation: isolate; } diff --git a/res/css/components/views/pips/_WidgetPip.pcss b/res/css/components/views/pips/_WidgetPip.pcss index f6bf5a2a63e..bc0419a4937 100644 --- a/res/css/components/views/pips/_WidgetPip.pcss +++ b/res/css/components/views/pips/_WidgetPip.pcss @@ -14,11 +14,21 @@ See the License for the specific language governing permissions and limitations under the License. */ +$width: 320px; +$height: 220px; + .mx_WidgetPip { - width: 320px; - height: 220px; + width: $width; + height: $height; +} + +.mx_WidgetPip_overlay { + width: $width; + height: $height; + position: absolute; + top: 0; border-radius: 8px; - contain: paint; + overflow: hidden; color: $call-primary-content; cursor: pointer; } @@ -31,8 +41,11 @@ limitations under the License. width: 100%; box-sizing: border-box; transition: opacity ease 0.15s; +} - .mx_WidgetPip:not(:hover) > & { +.mx_WidgetPip_overlay:not(:hover) { + .mx_WidgetPip_header, + .mx_WidgetPip_footer { opacity: 0; } } diff --git a/res/css/views/rooms/_AppsDrawer.pcss b/res/css/views/rooms/_AppsDrawer.pcss index 99d64739fa5..fc595683226 100644 --- a/res/css/views/rooms/_AppsDrawer.pcss +++ b/res/css/views/rooms/_AppsDrawer.pcss @@ -325,6 +325,9 @@ limitations under the License. &.mx_AppTileBody--call { border-radius: 0px; } + &.mx_AppTileBody--call.mx_AppTileBody--mini { + border-radius: 8px; + } } /* appTileBody is embedded to PersistedElement outside of mx_AppTile, diff --git a/src/components/structures/PipContainer.tsx b/src/components/structures/PipContainer.tsx index 6f249fd6779..a7676f5bbce 100644 --- a/src/components/structures/PipContainer.tsx +++ b/src/components/structures/PipContainer.tsx @@ -305,6 +305,7 @@ class PipContainerInner extends React.Component { const call = this.state.primaryCall; pipContent.push(({ onStartMoving, onResize }) => ( { if (this.state.showWidgetInPip && this.state.persistentWidgetId) { pipContent.push(({ onStartMoving }) => ( void) | undefined>; + // An element to render after the iframe as an overlay + overlay?: ReactNode; } interface IState { @@ -663,17 +665,20 @@ export default class AppTile extends React.Component { ); } else { appTileBody = ( -
- {this.state.loading && loadingElement} -