fix bad membership list horizontal scrolling

This commit is contained in:
Matthew Hodgson 2015-07-15 00:31:47 +01:00
parent 77e76972f0
commit 9a51cace34
3 changed files with 21 additions and 11 deletions

View file

@ -31,7 +31,11 @@ limitations under the License.
vertical-align: middle;
width: 32px;
height: 32px;
border-radius: 16px;
}
.mx_RoomTile_avatar img {
border-radius: 16px;
background-color: #dbdbdb;
}
.mx_RoomTile_name {

View file

@ -15,26 +15,30 @@ limitations under the License.
*/
.mx_MemberList {
width: 100%;
height: 100%;
margin-bottom: 100px;
padding: 8px;
}
.mx_MemberList_chevron {
position: absolute;
right: 20px;
margin-top: -5px;
margin-top: -13px;
}
.mx_MemberList_wrapper {
border: 1px solid #d8d8d8;
margin: 8px;
.mx_MemberList_border {
border: 1px solid #d8d8d8;
overflow-y: scroll;
height: auto;
max-height: 75%;
border-radius: 8px;
padding: 20px 24px 14px 24px;
}
.mx_MemberList_wrapper {
display: table;
table-layout: fixed;
width: 100%;
}
.mx_MemberList h2 {

View file

@ -45,12 +45,14 @@ module.exports = React.createClass({
<div className="mx_MemberList_chevron">
<img src="img/chevron.png" width="24" height="13"/>
</div>
<div className="mx_MemberList_wrapper">
<div className="mx_MemberList_border">
<h2>Members</h2>
{this.makeMemberTiles()}
<div className="mx_MemberTile">
<div className="mx_MemberTile_avatar"><img src="img/create.png" width="32" height="32" alt="()"/></div>
<div className="mx_MemberTile_name">Invite</div>
<div className="mx_MemberList_wrapper">
{this.makeMemberTiles()}
<div className="mx_MemberTile">
<div className="mx_MemberTile_avatar"><img src="img/create.png" width="32" height="32" alt="()"/></div>
<div className="mx_MemberTile_name">Invite</div>
</div>
</div>
</div>
</div>