1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

add scroll indicator gradients to top and bottom of room sub list

This commit is contained in:
Bruno Windels
2018-11-12 12:57:21 +01:00
parent b0032b247d
commit 0f226853f5
5 changed files with 118 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ import dis from '../../dispatcher';
import Unread from '../../Unread';
import * as RoomNotifs from '../../RoomNotifs';
import * as FormattingUtils from '../../utils/FormattingUtils';
import AutoHideScrollbar from './AutoHideScrollbar';
import IndicatorScrollbar from './IndicatorScrollbar';
import { KeyCode } from '../../Keyboard';
import { Group } from 'matrix-js-sdk';
import PropTypes from 'prop-types';
@@ -333,9 +333,9 @@ const RoomSubList = React.createClass({
tiles.push(...this.props.extraTiles);
return <div style={style} className={subListClasses}>
{this._getHeaderJsx()}
<AutoHideScrollbar className="mx_RoomSubList_scroll">
<IndicatorScrollbar className="mx_RoomSubList_scroll">
{ tiles }
</AutoHideScrollbar>
</IndicatorScrollbar>
</div>;
}
} else {