Merge pull request #5022 from matrix-org/t3chguy/fix/14653
Fix community right panel button regression
This commit is contained in:
commit
b78fa9fb92
3 changed files with 18 additions and 26 deletions
|
@ -70,15 +70,11 @@ limitations under the License.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.mx_MemberList_wrapper {
|
.mx_MemberList_wrapper {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_MemberList_invite {
|
||||||
.mx_MemberList_invite,
|
|
||||||
.mx_RightPanel_invite {
|
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: $button-bg-color;
|
background-color: $button-bg-color;
|
||||||
|
@ -88,11 +84,6 @@ limitations under the License.
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: $button-fg-color;
|
color: $button-fg-color;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
.mx_RightPanel_icon {
|
|
||||||
padding-right: 5px;
|
|
||||||
padding-top: 2px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MemberList_invite.mx_AccessibleButton_disabled {
|
.mx_MemberList_invite.mx_AccessibleButton_disabled {
|
||||||
|
@ -107,3 +98,11 @@ limitations under the License.
|
||||||
background-size: 20px;
|
background-size: 20px;
|
||||||
padding: 8px 0 8px 25px;
|
padding: 8px 0 8px 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_MemberList_inviteCommunity span {
|
||||||
|
background-image: url('$(res)/img/icon-invite-people.svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_MemberList_addRoomToCommunity span {
|
||||||
|
background-image: url('$(res)/img/icons-room-add.svg');
|
||||||
|
}
|
||||||
|
|
|
@ -24,7 +24,6 @@ import GroupStore from '../../../stores/GroupStore';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { showGroupInviteDialog } from '../../../GroupAddressPicker';
|
import { showGroupInviteDialog } from '../../../GroupAddressPicker';
|
||||||
import AccessibleButton from '../elements/AccessibleButton';
|
import AccessibleButton from '../elements/AccessibleButton';
|
||||||
import TintableSvg from '../elements/TintableSvg';
|
|
||||||
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
||||||
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
||||||
|
|
||||||
|
@ -211,15 +210,13 @@ export default createReactClass({
|
||||||
let inviteButton;
|
let inviteButton;
|
||||||
if (GroupStore.isUserPrivileged(this.props.groupId)) {
|
if (GroupStore.isUserPrivileged(this.props.groupId)) {
|
||||||
inviteButton = (
|
inviteButton = (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
className="mx_RightPanel_invite"
|
className="mx_MemberList_invite mx_MemberList_inviteCommunity"
|
||||||
onClick={this.onInviteToGroupButtonClick}
|
onClick={this.onInviteToGroupButtonClick}
|
||||||
>
|
>
|
||||||
<div className="mx_RightPanel_icon" >
|
<span>{ _t('Invite to this community') }</span>
|
||||||
<TintableSvg src={require("../../../../res/img/icon-invite-people.svg")} width="18" height="14" />
|
</AccessibleButton>
|
||||||
</div>
|
);
|
||||||
<div className="mx_RightPanel_message">{ _t('Invite to this community') }</div>
|
|
||||||
</AccessibleButton>);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -21,7 +21,6 @@ import GroupStore from '../../../stores/GroupStore';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { showGroupAddRoomDialog } from '../../../GroupAddressPicker';
|
import { showGroupAddRoomDialog } from '../../../GroupAddressPicker';
|
||||||
import AccessibleButton from '../elements/AccessibleButton';
|
import AccessibleButton from '../elements/AccessibleButton';
|
||||||
import TintableSvg from '../elements/TintableSvg';
|
|
||||||
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
||||||
|
|
||||||
const INITIAL_LOAD_NUM_ROOMS = 30;
|
const INITIAL_LOAD_NUM_ROOMS = 30;
|
||||||
|
@ -135,13 +134,10 @@ export default createReactClass({
|
||||||
if (GroupStore.isUserPrivileged(this.props.groupId)) {
|
if (GroupStore.isUserPrivileged(this.props.groupId)) {
|
||||||
inviteButton = (
|
inviteButton = (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
className="mx_RightPanel_invite"
|
className="mx_MemberList_invite mx_MemberList_addRoomToCommunity"
|
||||||
onClick={this.onAddRoomToGroupButtonClick}
|
onClick={this.onAddRoomToGroupButtonClick}
|
||||||
>
|
>
|
||||||
<div className="mx_RightPanel_icon" >
|
<span>{ _t('Add rooms to this community') }</span>
|
||||||
<TintableSvg src={require("../../../../res/img/icons-room-add.svg")} width="18" height="14" />
|
|
||||||
</div>
|
|
||||||
<div className="mx_RightPanel_message">{ _t('Add rooms to this community') }</div>
|
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue