diff --git a/src/skins/vector/css/common.css b/src/skins/vector/css/common.css index d6c5e091e..8afba88ef 100644 --- a/src/skins/vector/css/common.css +++ b/src/skins/vector/css/common.css @@ -34,15 +34,6 @@ h2 { margin-bottom: 16px; } -/* FIXME: show them on hoverover, and fix for firefox */ -::-webkit-scrollbar { - display: none; -} - -html { - overflow: -moz-scrollbars-none; -} - .mx_ContextualMenu_background { position: fixed; top: 0; @@ -153,4 +144,4 @@ html { font-weight: bold; font-size: 20px; line-height: 1.4; -} \ No newline at end of file +} diff --git a/src/skins/vector/views/molecules/ContextualMenu.js b/src/skins/vector/views/molecules/ContextualMenu.js deleted file mode 100644 index e2d75da7b..000000000 --- a/src/skins/vector/views/molecules/ContextualMenu.js +++ /dev/null @@ -1,30 +0,0 @@ -/* -Copyright 2015 OpenMarket Ltd - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -'use strict'; - -var React = require('react'); - -module.exports = React.createClass({ - displayName: 'ContextualMenu', - - render: function() { - return ( -
-
- ); - } -}); diff --git a/src/skins/vector/views/molecules/MemberTile.js b/src/skins/vector/views/molecules/MemberTile.js index e8b9eeac3..991616d58 100644 --- a/src/skins/vector/views/molecules/MemberTile.js +++ b/src/skins/vector/views/molecules/MemberTile.js @@ -128,9 +128,9 @@ module.exports = React.createClass({ if (this.state.hover || this.state.menu) { var presence; // FIXME: make presence data update whenever User.presence changes... - var active = this.props.member.user ? (this.props.member.user.lastActiveAgo || -1) : -1; + var active = this.props.member.user ? ((Date.now() - (this.props.member.user.lastPresenceTs - this.props.member.user.lastActiveAgo)) || -1) : -1; if (active >= 0) { - presence =
{ this.getPrettyPresence(this.props.member.user) } for { this.getDuration(active) }
; + presence =
{ this.getPrettyPresence(this.props.member.user) } { this.getDuration(active) } ago
; } else { presence =
{ this.getPrettyPresence(this.props.member.user) }
; diff --git a/src/skins/vector/views/organisms/MemberList.js b/src/skins/vector/views/organisms/MemberList.js index 47d1d0f19..1cf0bf276 100644 --- a/src/skins/vector/views/organisms/MemberList.js +++ b/src/skins/vector/views/organisms/MemberList.js @@ -32,18 +32,6 @@ module.exports = React.createClass({ return { editing: false }; }, - // FIXME: combine this more nicely with the MemberInfo positioning stuff... - onMemberListScroll: function(ev) { - if (this.refs.memberListScroll) { - var memberListScroll = this.refs.memberListScroll.getDOMNode(); - // offset the current MemberInfo bubble - var memberInfo = document.getElementsByClassName("mx_MemberInfo")[0]; - if (memberInfo) { - memberInfo.style.top = (memberInfo.parentElement.offsetTop - memberListScroll.scrollTop) + "px"; - } - } - }, - makeMemberTiles: function() { var MemberTile = sdk.getComponent("molecules.MemberTile"); @@ -97,7 +85,7 @@ module.exports = React.createClass({
-
+

Members

{this.makeMemberTiles()}