Fix in-room overflow
This commit is contained in:
parent
95e348f842
commit
77aff4f829
3 changed files with 22 additions and 20 deletions
35
src/Room.jsx
35
src/Room.jsx
|
@ -49,6 +49,7 @@ import * as Sentry from "@sentry/react";
|
||||||
import { OverflowMenu } from "./OverflowMenu";
|
import { OverflowMenu } from "./OverflowMenu";
|
||||||
import { GridLayoutMenu } from "./GridLayoutMenu";
|
import { GridLayoutMenu } from "./GridLayoutMenu";
|
||||||
import { UserMenu } from "./UserMenu";
|
import { UserMenu } from "./UserMenu";
|
||||||
|
import classNames from "classnames";
|
||||||
|
|
||||||
const canScreenshare = "getDisplayMedia" in navigator.mediaDevices;
|
const canScreenshare = "getDisplayMedia" in navigator.mediaDevices;
|
||||||
// There is currently a bug in Safari our our code with cloning and sending MediaStreams
|
// There is currently a bug in Safari our our code with cloning and sending MediaStreams
|
||||||
|
@ -128,14 +129,12 @@ export function GroupCall({ client }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.room}>
|
<GroupCallView
|
||||||
<GroupCallView
|
client={client}
|
||||||
client={client}
|
roomId={roomId}
|
||||||
roomId={roomId}
|
groupCall={groupCall}
|
||||||
groupCall={groupCall}
|
simpleGrid={simpleGrid}
|
||||||
simpleGrid={simpleGrid}
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,14 +186,14 @@ export function GroupCallView({ client, roomId, groupCall, simpleGrid }) {
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={styles.room}>
|
||||||
<Header>
|
<Header>
|
||||||
<LeftNav>
|
<LeftNav>
|
||||||
<HeaderLogo />
|
<HeaderLogo />
|
||||||
</LeftNav>
|
</LeftNav>
|
||||||
</Header>
|
</Header>
|
||||||
<ErrorModal error={error} />
|
<ErrorModal error={error} />
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (state === GroupCallState.Entered) {
|
} else if (state === GroupCallState.Entered) {
|
||||||
return (
|
return (
|
||||||
|
@ -245,21 +244,21 @@ export function GroupCallView({ client, roomId, groupCall, simpleGrid }) {
|
||||||
|
|
||||||
export function LoadingRoomView() {
|
export function LoadingRoomView() {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={styles.room}>
|
||||||
<div className={styles.centerMessage}>
|
<div className={styles.centerMessage}>
|
||||||
<p>Loading room...</p>
|
<p>Loading room...</p>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EnteringRoomView() {
|
export function EnteringRoomView() {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={styles.room}>
|
||||||
<div className={styles.centerMessage}>
|
<div className={styles.centerMessage}>
|
||||||
<p>Entering room...</p>
|
<p>Entering room...</p>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -288,7 +287,7 @@ function RoomSetupView({
|
||||||
}, [onInitLocalCallFeed]);
|
}, [onInitLocalCallFeed]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={styles.room}>
|
||||||
<Header>
|
<Header>
|
||||||
<LeftNav>
|
<LeftNav>
|
||||||
<RoomSetupHeaderInfo
|
<RoomSetupHeaderInfo
|
||||||
|
@ -353,7 +352,7 @@ function RoomSetupView({
|
||||||
Take me Home
|
Take me Home
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -428,7 +427,7 @@ function InRoomView({
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={classNames(styles.room, styles.inRoom)}>
|
||||||
<Header>
|
<Header>
|
||||||
<LeftNav>
|
<LeftNav>
|
||||||
<RoomHeaderInfo roomName={roomName} />
|
<RoomHeaderInfo roomName={roomName} />
|
||||||
|
@ -474,6 +473,6 @@ function InRoomView({
|
||||||
groupCall={groupCall}
|
groupCall={groupCall}
|
||||||
show={showInspector}
|
show={showInspector}
|
||||||
/>
|
/>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,12 +18,15 @@ limitations under the License.
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100vw;
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-height: -webkit-fill-available;
|
min-height: -webkit-fill-available;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.inRoom {
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
.joinRoom {
|
.joinRoom {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -129,7 +129,7 @@ body {
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
|
|
Loading…
Reference in a new issue