mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
Merge pull request #3889 from element-hq/multiple-screen-shares
Fix visual glitches with multiple screen shares
This commit is contained in:
@@ -11,6 +11,9 @@ Please see LICENSE in the repository root for full details.
|
|||||||
border-radius: var(--media-view-border-radius);
|
border-radius: var(--media-view-border-radius);
|
||||||
/*Add spacing for the hover boarder. Otherwise it might get clipped.*/
|
/*Add spacing for the hover boarder. Otherwise it might get clipped.*/
|
||||||
margin: var(--hover-space-margin);
|
margin: var(--hover-space-margin);
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas: "content";
|
||||||
|
place-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media video {
|
.media video {
|
||||||
@@ -37,6 +40,7 @@ Please see LICENSE in the repository root for full details.
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg {
|
.bg {
|
||||||
|
grid-area: content;
|
||||||
background-color: var(--video-tile-background);
|
background-color: var(--video-tile-background);
|
||||||
inline-size: 100%;
|
inline-size: 100%;
|
||||||
block-size: 100%;
|
block-size: 100%;
|
||||||
@@ -75,18 +79,19 @@ unconditionally select the container so we can use cqmin units */
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fg {
|
.fg {
|
||||||
position: absolute;
|
grid-area: content;
|
||||||
--fg-inset: var(
|
--fg-inset: var(
|
||||||
--media-view-fg-inset,
|
--media-view-fg-inset,
|
||||||
calc(var(--media-view-border-radius) - var(--cpd-space-3x))
|
calc(var(--media-view-border-radius) - var(--cpd-space-3x))
|
||||||
);
|
);
|
||||||
inset: var(--fg-inset);
|
padding: var(--fg-inset);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto;
|
grid-template-columns: 1fr auto;
|
||||||
grid-template-rows: 1fr auto;
|
grid-template-rows: 1fr auto;
|
||||||
grid-template-areas: "status reactions" "nameTag button";
|
grid-template-areas: "status reactions" "nameTag button";
|
||||||
gap: var(--cpd-space-1x);
|
gap: var(--cpd-space-1x);
|
||||||
place-items: start;
|
place-items: start;
|
||||||
|
contain: strict;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nameTag {
|
.nameTag {
|
||||||
|
|||||||
@@ -153,10 +153,10 @@ Please see LICENSE in the repository root for full details.
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (hover) {
|
@media (hover) {
|
||||||
.tile > div > button {
|
.tile button {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
.tile:hover > div > button {
|
.tile:hover button {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user