Skip to content

Commit 34a001e

Browse files
fixed video component styling
1 parent e62d64c commit 34a001e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingStreamComp.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ const Container = styled.div<{ $style: any }>`
6262
${(props) => props.$style && getStyle(props.$style)}
6363
`;
6464

65+
const VideoContainer = styled.video<{ $style: any }>`
66+
height: 100%;
67+
width: 100%;
68+
display: flex;
69+
align-items: center;
70+
justify-content: center;
71+
${(props) => props.$style && getStyle(props.$style)}
72+
`;
73+
6574
const getStyle = (style: any) => {
6675
return css`
6776
{
@@ -203,11 +212,12 @@ let VideoCompBuilder = (function (props) {
203212
{(editorState) => (
204213
<ReactResizeDetector onResize={onResize}>
205214
<Container ref={conRef} $style={props.style}>
206-
<video
215+
<VideoContainer
207216
ref={videoRef}
217+
$style={props.style}
208218
id={props.userId.value}
209-
style={{ width: 300, height: 300 }}
210-
></video>
219+
></VideoContainer>
220+
{/* <video ref={videoRef} style={{ width: 300, height: 300 }}></video> */}
211221
</Container>
212222
</ReactResizeDetector>
213223
)}

0 commit comments

Comments
 (0)