room invite css

pull/4/head
Matthew Hodgson 2015-07-23 11:01:28 -07:00
parent cc9123a33d
commit 02846c4fff
2 changed files with 15 additions and 0 deletions

View File

@ -94,6 +94,19 @@ limitations under the License.
}
.mx_RoomView_invitePrompt {
-webkit-box-ordinal-group: 2;
-moz-box-ordinal-group: 2;
-ms-flex-order: 2;
-webkit-order: 2;
order: 2;
min-width: 0px;
max-width: 720px;
width: 100%;
margin: auto;
margin-top: 12px;
margin-bottom: 12px;
}
.mx_RoomView_statusArea {

View File

@ -92,8 +92,10 @@ module.exports = React.createClass({
var joinErrorText = this.state.joinError ? "Failed to join room!" : "";
return (
<div className="mx_RoomView">
<RoomHeader ref="header" room={this.state.room} simpleHeader="Room invite"/>
<div className="mx_RoomView_invitePrompt">
<div>{inviteEvent.user_id} has invited you to a room</div>
<br/>
<button ref="joinButton" onClick={this.onJoinButtonClicked}>Join</button>
<div className="error">{joinErrorText}</div>
</div>