Give the show more button some real CSS

This is still somewhat placeholder.
pull/21833/head
Travis Ralston 2020-06-05 08:48:23 -06:00
parent 6752c2832e
commit 475ba61671
2 changed files with 10 additions and 2 deletions

View File

@ -38,5 +38,14 @@ limitations under the License.
display: flex;
flex-direction: column;
overflow: hidden;
.mx_RoomSublist2_showMoreButton {
height: 44px; // 1 room tile high
cursor: pointer;
// We create a flexbox to cheat at alignment
display: flex;
align-items: center;
}
}
}

View File

@ -237,11 +237,10 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
// TODO: CSS TBD
// TODO: Make this an actual tile
const moreTileHeightPx = layout.tileHeight;
visibleTiles.splice(visibleTiles.length - 1, 1, (
<div
onClick={this.onShowAllClick}
style={{height: moreTileHeightPx, lineHeight: moreTileHeightPx, cursor: 'pointer'}}
className='mx_RoomSublist2_showMoreButton'
key='showall'
>
{_t("Show %(n)s more", {n: numMissing})}