Merge pull request #2531 from robintown/iterate-margins

Add back some margins to the interface
This commit is contained in:
Robin
2024-08-02 08:42:03 -04:00
committed by GitHub
3 changed files with 35 additions and 19 deletions

View File

@@ -40,7 +40,8 @@ limitations under the License.
position: absolute;
inline-size: 404px;
block-size: 233px;
inset: 0;
inset-block: 0;
inset-inline: var(--cpd-space-3x);
}
.fixed > .slot[data-block-alignment="start"] {

View File

@@ -49,6 +49,7 @@ limitations under the License.
.header {
position: sticky;
flex-shrink: 0;
inset-block-start: 0;
z-index: 1;
background: linear-gradient(
@@ -58,6 +59,11 @@ limitations under the License.
);
}
.header.filler {
block-size: var(--cpd-space-6x);
background: none;
}
.footer {
position: sticky;
inset-block-end: 0;

View File

@@ -496,24 +496,33 @@ export const InCallView: FC<InCallViewProps> = ({
return (
<div className={styles.inRoom} ref={containerRef}>
{!hideHeader && windowMode !== "pip" && windowMode !== "flat" && (
<Header className={styles.header} ref={headerRef}>
<LeftNav>
<RoomHeaderInfo
id={matrixInfo.roomId}
name={matrixInfo.roomName}
avatarUrl={matrixInfo.roomAvatar}
encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE}
participantCount={participantCount}
/>
</LeftNav>
<RightNav>
{!reducedControls && showControls && onShareClick !== null && (
<InviteButton onClick={onShareClick} />
)}
</RightNav>
</Header>
)}
{windowMode !== "pip" &&
windowMode !== "flat" &&
(hideHeader ? (
// Cosmetic header to fill out space while still affecting the bounds
// of the grid
<div
className={classNames(styles.header, styles.filler)}
ref={headerRef}
/>
) : (
<Header className={styles.header} ref={headerRef}>
<LeftNav>
<RoomHeaderInfo
id={matrixInfo.roomId}
name={matrixInfo.roomName}
avatarUrl={matrixInfo.roomAvatar}
encrypted={matrixInfo.e2eeSystem.kind !== E2eeType.NONE}
participantCount={participantCount}
/>
</LeftNav>
<RightNav>
{!reducedControls && showControls && onShareClick !== null && (
<InviteButton onClick={onShareClick} />
)}
</RightNav>
</Header>
))}
<RoomAudioRenderer />
{renderContent()}
{footer}