diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-05-26 02:55:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-26 02:55:37 +0200 |
commit | 0e445ebb1392c8dbce320509d219f16c7c221406 (patch) | |
tree | 80e152870735fbb15656ee5b87fc61a54b4d7564 /app/javascript/mastodon/features/ui/components/list_panel.js | |
parent | a472190729782f31731674c626c07af483fe9c7f (diff) |
Improvements to the single column layout (#10835)
* Improvements to the single column layout - Add follows and followers link to the right panel - Increase margins around separators in right panel - Add follow requests link with counter when account is locked to right panel * Redirect from getting started to home when navigation panel is visible
Diffstat (limited to 'app/javascript/mastodon/features/ui/components/list_panel.js')
-rw-r--r-- | app/javascript/mastodon/features/ui/components/list_panel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/ui/components/list_panel.js b/app/javascript/mastodon/features/ui/components/list_panel.js index 9a52c1b10..1f7ec683a 100644 --- a/app/javascript/mastodon/features/ui/components/list_panel.js +++ b/app/javascript/mastodon/features/ui/components/list_panel.js @@ -13,7 +13,7 @@ const getOrderedLists = createSelector([state => state.get('lists')], lists => { return lists; } - return lists.toList().filter(item => !!item).sort((a, b) => a.get('title').localeCompare(b.get('title'))); + return lists.toList().filter(item => !!item).sort((a, b) => a.get('title').localeCompare(b.get('title'))).take(4); }); const mapStateToProps = state => ({ @@ -37,7 +37,7 @@ class ListPanel extends ImmutablePureComponent { render () { const { lists } = this.props; - if (!lists) { + if (!lists || lists.isEmpty()) { return null; } |