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

Commit

Permalink
Add invite dialog style
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed Mar 2, 2023
1 parent b473fe2 commit 7143a55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions res/css/views/dialogs/_InviteDialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -452,3 +452,8 @@ limitations under the License.
.mx_InviteDialog_identityServer {
margin-top: 1em; /* TODO: Use a spacing variable */
}

.mx_InviteDialog_oneThreepid {
font-size: $font-12px;
margin: $spacing-8 0;
}
6 changes: 5 additions & 1 deletion src/components/views/dialogs/InviteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,11 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
let onlyOneThreepidNote: React.ReactNode | null = null;

if (!this.canInviteMore() || (this.hasFilterAtLeastOneEmail() && !this.canInviteThirdParty())) {
onlyOneThreepidNote = <div>{_t("Invites by email can only be sent one at a time")}</div>;
onlyOneThreepidNote = (
<div className="mx_InviteDialog_oneThreepid">
{_t("Invites by email can only be sent one at a time")}
</div>
);
} else {
results = (
<div className="mx_InviteDialog_userSections">
Expand Down

0 comments on commit 7143a55

Please sign in to comment.