Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Fix VideoTile to show menu button on hover when isSpeaking prop is true",
"packageName": "@azure/communication-react",
"email": "79475487+mgamis-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Fix VideoTile to show menu button on hover when isSpeaking prop is true",
"packageName": "@azure/communication-react",
"email": "79475487+mgamis-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export const FloatingLocalVideoLayout = (props: FloatingLocalVideoLayoutProps):

return (
<Stack styles={rootLayoutStyle}>
{wrappedLocalVideoComponent}
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} />
<Stack horizontal={false} styles={innerLayoutStyle} tokens={videoGalleryLayoutGap}>
{screenShareComponent ? (
screenShareComponent
Expand All @@ -153,8 +155,6 @@ export const FloatingLocalVideoLayout = (props: FloatingLocalVideoLayoutProps):
)}
{horizontalGallery}
</Stack>
{wrappedLocalVideoComponent}
<LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} />
</Stack>
);
};
10 changes: 4 additions & 6 deletions packages/react-components/src/components/VideoTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,19 +333,17 @@ export const VideoTile = (props: VideoTileProps): JSX.Element => {
rootStyles,
{
background: theme.palette.neutralLighter,
borderRadius: theme.effects.roundedCorner4,
// To ensure that the video tile is focusable when there is a floating video tile
zIndex: 1
borderRadius: theme.effects.roundedCorner4
},
isSpeaking && {
'&::before': {
'&::after': {
content: `''`,
position: 'absolute',
zIndex: 1,
border: `0.25rem solid ${theme.palette.themePrimary}`,
borderRadius: theme.effects.roundedCorner4,
width: '100%',
height: '100%'
height: '100%',
pointerEvents: 'none'
Comment thread
mgamis-msft marked this conversation as resolved.
}
},
styles?.root
Expand Down