Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
feat: fix width of empty read receipts group
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Apr 22, 2022
1 parent b5d9aa1 commit 248a892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion res/css/views/rooms/_ReadReceiptGroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ limitations under the License.
position: relative;
display: block;
height: 100%;
width: 36px;

.mx_BaseAvatar {
position: absolute;
Expand Down
7 changes: 2 additions & 5 deletions src/components/views/rooms/ReadReceiptGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { useRovingTabIndex } from "../../../accessibility/RovingTabIndex";

const MAX_READ_AVATARS = 3;
const READ_AVATAR_OFFSET = 10;
const READ_AVATAR_SIZE = 16;
export const READ_AVATAR_SIZE = 16;

interface Props {
readReceipts: IReadReceiptProps[];
Expand Down Expand Up @@ -75,10 +75,7 @@ export function ReadReceiptGroup(
<div className="mx_EventTile_msgOption">
<div className="mx_ReadReceiptGroup">
<div className="mx_ReadReceiptGroup_button">
<span
className="mx_ReadReceiptGroup_container"
style={{ width: READ_AVATAR_SIZE }}
/>
<span className="mx_ReadReceiptGroup_container" />
</div>
</div>
</div>
Expand Down

0 comments on commit 248a892

Please sign in to comment.