Move the beta pill to the right side and display the pill on video room only (#8873)

This commit is contained in:
Suguru Hirahara 2022-06-19 14:52:58 +00:00 committed by GitHub
parent cfbe1cb066
commit 769efa3074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -74,6 +74,7 @@ limitations under the License.
// XXX Remove this when video rooms leave beta // XXX Remove this when video rooms leave beta
.mx_BetaCard_betaPill { .mx_BetaCard_betaPill {
margin-inline-start: auto;
align-self: start; align-self: start;
} }
} }

View file

@ -102,7 +102,10 @@ const RoomPreviewCard: FC<IProps> = ({ room, onJoinButtonClicked, onRejectButton
{ inviteSender } { inviteSender }
</div> : null } </div> : null }
</div> </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>; </div>;
} }