Improve trends layout (#7700)
* Allow collapsing trends, responsively hide trends * Add trends column
This commit is contained in:
parent
69b45350fe
commit
73c0c36e7b
8 changed files with 124 additions and 8 deletions
|
@ -42,6 +42,7 @@ import {
|
|||
Mutes,
|
||||
PinnedStatuses,
|
||||
Lists,
|
||||
Trends,
|
||||
} from './util/async-components';
|
||||
import { HotKeys } from 'react-hotkeys';
|
||||
import { me } from '../../initial_state';
|
||||
|
@ -154,6 +155,7 @@ class SwitchingColumnsArea extends React.PureComponent {
|
|||
<WrappedRoute path='/pinned' component={PinnedStatuses} content={children} />
|
||||
|
||||
<WrappedRoute path='/search' component={Compose} content={children} componentParams={{ isSearchPage: true }} />
|
||||
<WrappedRoute path='/trends' component={Trends} content={children} />
|
||||
|
||||
<WrappedRoute path='/statuses/new' component={Compose} content={children} />
|
||||
<WrappedRoute path='/statuses/:statusId' exact component={Status} content={children} />
|
||||
|
|
|
@ -129,3 +129,7 @@ export function EmbedModal () {
|
|||
export function ListEditor () {
|
||||
return import(/* webpackChunkName: "features/list_editor" */'../../list_editor');
|
||||
}
|
||||
|
||||
export function Trends () {
|
||||
return import(/* webpackChunkName: "features/trends" */'../../trends');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue