Skip to content

Commit 0cffd8d

Browse files
committed
sort out files button & NPE
1 parent f4d21f8 commit 0cffd8d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎src/skins/vector/css/organisms/RightPanel.css‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ limitations under the License.
4343
margin-top: 32px;
4444
float: left;
4545
background-color: #fff;
46-
margin-left: 3px;
46+
margin-left: -4px;
4747
}
4848

4949
.mx_RightPanel_headerButton {
5050
cursor: pointer;
5151
display: table-cell;
5252
vertical-align: middle;
53-
padding-left: 8px;
54-
padding-right: 8px;
53+
padding-left: 15px;
54+
padding-right: 15px;
5555
position: relative;
5656
}
5757

5858
.mx_RightPanel_headerButton_highlight {
59-
position: relative;
60-
bottom: 0px;
61-
left: -4px;
59+
position: absolute;
60+
bottom: -2px;
61+
left: 10px;
6262
width: 25px;
6363
height: 4px;
6464
background-color: #76cfa6;

‎src/skins/vector/views/organisms/RightPanel.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = React.createClass({
6666
}
6767

6868
var membersBadge;
69-
if (this.state.phase == this.Phase.MemberList) {
69+
if (this.state.phase == this.Phase.MemberList && this.props.roomId) {
7070
var cli = MatrixClientPeg.get();
7171
var room = cli.getRoom(this.props.roomId);
7272
// FIXME: presumably we need to subscribe to some event to refresh this count when it changes?
@@ -82,7 +82,7 @@ module.exports = React.createClass({
8282
{ membersHighlight }
8383
</div>
8484
<div className="mx_RightPanel_headerButton mx_RightPanel_filebutton">
85-
<img src="img/file.png" width="17" height="22" title="Files" alt="Files"/>
85+
<img src="img/files.png" width="17" height="22" title="Files" alt="Files"/>
8686
{ filesHighlight }
8787
</div>
8888
</div>;

0 commit comments

Comments
 (0)