diff --git a/src/controllers/organisms/RoomList.js b/src/controllers/organisms/RoomList.js index 2602315a..b178fce7 100644 --- a/src/controllers/organisms/RoomList.js +++ b/src/controllers/organisms/RoomList.js @@ -159,6 +159,7 @@ module.exports = {
- Create new room + Create new room
Create new room
- Directory + Directory
Directory
- Settings + Settings
Settings
diff --git a/src/skins/vector/views/molecules/RoomHeader.js b/src/skins/vector/views/molecules/RoomHeader.js index fc097d39..3518d1dd 100644 --- a/src/skins/vector/views/molecules/RoomHeader.js +++ b/src/skins/vector/views/molecules/RoomHeader.js @@ -92,7 +92,7 @@ module.exports = React.createClass({ var roomAvatar = null; if (this.props.room) { roomAvatar = ( - + ); } diff --git a/src/skins/vector/views/molecules/RoomTile.js b/src/skins/vector/views/molecules/RoomTile.js index 61fa0021..f43b0023 100644 --- a/src/skins/vector/views/molecules/RoomTile.js +++ b/src/skins/vector/views/molecules/RoomTile.js @@ -28,6 +28,19 @@ var sdk = require('matrix-react-sdk') module.exports = React.createClass({ displayName: 'RoomTile', mixins: [RoomTileController], + + getInitialState: function() { + return( { hover : false }); + }, + + onMouseEnter: function() { + this.setState( { hover : true }); + }, + + onMouseLeave: function() { + this.setState( { hover : false }); + }, + render: function() { var myUserId = MatrixClientPeg.get().credentials.userId; var classes = classNames({ @@ -57,14 +70,26 @@ module.exports = React.createClass({ nameCell =
{name}
; } */ + + var nameElement; + if (!this.props.collapsed) { + nameElement =
{name}
; + } + else if (this.state.hover) { + nameElement =
+ + { name } +
; + } + var RoomAvatar = sdk.getComponent('atoms.RoomAvatar'); return ( -
+
{ badge }
-
{name}
+ { nameElement }
); } diff --git a/src/skins/vector/views/organisms/LeftPanel.js b/src/skins/vector/views/organisms/LeftPanel.js index 15612704..fbd5d3c1 100644 --- a/src/skins/vector/views/organisms/LeftPanel.js +++ b/src/skins/vector/views/organisms/LeftPanel.js @@ -22,16 +22,40 @@ var sdk = require('matrix-react-sdk') module.exports = React.createClass({ displayName: 'LeftPanel', + getInitialState: function() { + return { + collapsed: false, + }; + }, + + onShowClick: function() { + this.setState({ collapsed : false }); + }, + + onHideClick: function() { + this.setState({ collapsed : true }); + }, + render: function() { var RoomList = sdk.getComponent('organisms.RoomList'); var BottomLeftMenu = sdk.getComponent('molecules.BottomLeftMenu'); var IncomingCallBox = sdk.getComponent('molecules.voip.IncomingCallBox'); + var collapseButton; + var classes = "mx_LeftPanel"; + if (this.state.collapsed) { + classes += " collapsed"; + collapseButton = > + } + else { + collapseButton = < + } + return ( -