]> cat aescling's git repositories - mastodon.git/commitdiff
Fix the display of missing lists (#8523)
authortrwnh <a@trwnh.com>
Sat, 1 Sep 2018 01:36:36 +0000 (20:36 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 1 Sep 2018 01:36:36 +0000 (03:36 +0200)
* Fix the display of missing lists

See #6786 -- this fixes part of the issue pertaining to lists that don't exist. I copied the Column being returned from the missing status logic, which works fine. Prior to this, the missing lists logic would generate a column with no back button and with a broken layout. This doesn't fix the broken display of missing accounts -- the column construction pertaining to that logic happens in multiple external functions.

* import ColumnBackButton

missed the import with the first commit

app/javascript/mastodon/features/list_timeline/index.js

index 164669e89c70d2ff96ff84116c38ce59752f0737..a655451b187c7aeabfe715d8ddc13f21206730f4 100644 (file)
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
 import ImmutablePropTypes from 'react-immutable-proptypes';
 import StatusListContainer from '../ui/containers/status_list_container';
 import Column from '../../components/column';
+import ColumnBackButton from '../../components/column_back_button';
 import ColumnHeader from '../../components/column_header';
 import { addColumn, removeColumn, moveColumn } from '../../actions/columns';
 import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
@@ -129,9 +130,8 @@ export default class ListTimeline extends React.PureComponent {
     } else if (list === false) {
       return (
         <Column>
-          <div className='scrollable'>
-            <MissingIndicator />
-          </div>
+          <ColumnBackButton />
+          <MissingIndicator />
         </Column>
       );
     }