Add max width for room and space options menu

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-30 10:41:18 +05:30
parent 0c32d5302c
commit e85a869733
3 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ function RoomOptions({ roomId, afterOptionSelect }) {
};
return (
<>
<div style={{ maxWidth: '256px' }}>
<MenuHeader>{twemojify(`Options for ${initMatrix.matrixClient.getRoom(roomId)?.name}`)}</MenuHeader>
<MenuItem iconSrc={TickMarkIC} onClick={handleMarkAsRead}>Mark as read</MenuItem>
<MenuItem
@ -51,7 +51,7 @@ function RoomOptions({ roomId, afterOptionSelect }) {
<MenuItem iconSrc={LeaveArrowIC} variant="danger" onClick={handleLeaveClick}>Leave</MenuItem>
<MenuHeader>Notification</MenuHeader>
<RoomNotification roomId={roomId} />
</>
</div>
);
}

View file

@ -44,7 +44,7 @@ function SpaceOptions({ roomId, afterOptionSelect }) {
};
return (
<>
<div style={{ maxWidth: 'calc(var(--navigation-drawer-width) - var(--sp-normal))' }}>
<MenuHeader>{twemojify(`Options for ${initMatrix.matrixClient.getRoom(roomId)?.name}`)}</MenuHeader>
<MenuItem
onClick={handlePinClick}
@ -67,7 +67,7 @@ function SpaceOptions({ roomId, afterOptionSelect }) {
>
Leave
</MenuItem>
</>
</div>
);
}

View file

@ -170,7 +170,7 @@ function RoomSettings({ roomId }) {
<span style={{ color: 'var(--tc-surface-low)' }}> room settings</span>
</Text>
</TitleWrapper>
<RawIcon src={ChevronTopIC} />
<RawIcon size="small" src={ChevronTopIC} />
</button>
</Header>
<RoomProfile roomId={roomId} />