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

Commit

Permalink
Move the beta pill to the right side and display the pill on video ro…
Browse files Browse the repository at this point in the history
…om only (#8873)
  • Loading branch information
luixxiul authored Jun 19, 2022
1 parent cfbe1cb commit 769efa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions res/css/views/rooms/_RoomPreviewCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ limitations under the License.

// XXX Remove this when video rooms leave beta
.mx_BetaCard_betaPill {
margin-inline-start: auto;
align-self: start;
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/components/views/rooms/RoomPreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ const RoomPreviewCard: FC<IProps> = ({ room, onJoinButtonClicked, onRejectButton
{ inviteSender }
</div> : null }
</div>
<BetaPill onClick={viewLabs} tooltipTitle={_t("Video rooms are a beta feature")} />
{ room.isElementVideoRoom()
? <BetaPill onClick={viewLabs} tooltipTitle={_t("Video rooms are a beta feature")} />
: null
}
</div>;
}

Expand Down

0 comments on commit 769efa3

Please sign in to comment.