Merge pull request #2531 from robintown/iterate-margins
Add back some margins to the interface
This commit is contained in:
@@ -40,7 +40,8 @@ limitations under the License.
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
inline-size: 404px;
|
inline-size: 404px;
|
||||||
block-size: 233px;
|
block-size: 233px;
|
||||||
inset: 0;
|
inset-block: 0;
|
||||||
|
inset-inline: var(--cpd-space-3x);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed > .slot[data-block-alignment="start"] {
|
.fixed > .slot[data-block-alignment="start"] {
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ limitations under the License.
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
flex-shrink: 0;
|
||||||
inset-block-start: 0;
|
inset-block-start: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
@@ -58,6 +59,11 @@ limitations under the License.
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header.filler {
|
||||||
|
block-size: var(--cpd-space-6x);
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
inset-block-end: 0;
|
inset-block-end: 0;
|
||||||
|
|||||||
@@ -496,24 +496,33 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.inRoom} ref={containerRef}>
|
<div className={styles.inRoom} ref={containerRef}>
|
||||||
{!hideHeader && windowMode !== "pip" && windowMode !== "flat" && (
|
{windowMode !== "pip" &&
|
||||||
<Header className={styles.header} ref={headerRef}>
|
windowMode !== "flat" &&
|
||||||
<LeftNav>
|
(hideHeader ? (
|
||||||
<RoomHeaderInfo
|
// Cosmetic header to fill out space while still affecting the bounds
|
||||||
id={matrixInfo.roomId}
|
// of the grid
|
||||||
name={matrixInfo.roomName}
|
<div
|
||||||
avatarUrl={matrixInfo.roomAvatar}
|
className={classNames(styles.header, styles.filler)}
|
||||||
encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE}
|
ref={headerRef}
|
||||||
participantCount={participantCount}
|
/>
|
||||||
/>
|
) : (
|
||||||
</LeftNav>
|
<Header className={styles.header} ref={headerRef}>
|
||||||
<RightNav>
|
<LeftNav>
|
||||||
{!reducedControls && showControls && onShareClick !== null && (
|
<RoomHeaderInfo
|
||||||
<InviteButton onClick={onShareClick} />
|
id={matrixInfo.roomId}
|
||||||
)}
|
name={matrixInfo.roomName}
|
||||||
</RightNav>
|
avatarUrl={matrixInfo.roomAvatar}
|
||||||
</Header>
|
encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE}
|
||||||
)}
|
participantCount={participantCount}
|
||||||
|
/>
|
||||||
|
</LeftNav>
|
||||||
|
<RightNav>
|
||||||
|
{!reducedControls && showControls && onShareClick !== null && (
|
||||||
|
<InviteButton onClick={onShareClick} />
|
||||||
|
)}
|
||||||
|
</RightNav>
|
||||||
|
</Header>
|
||||||
|
))}
|
||||||
<RoomAudioRenderer />
|
<RoomAudioRenderer />
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
{footer}
|
{footer}
|
||||||
|
|||||||
Reference in New Issue
Block a user