~cytrogen/masto-fe

891d6c5fa5c9e39be9650f3333276c098a4c399f — Laura Hausmann 2 years ago aa0801e
Add domain to acct display in sidebar
M app/javascript/flavours/glitch/features/compose/components/navigation_bar.jsx => app/javascript/flavours/glitch/features/compose/components/navigation_bar.jsx +2 -0
@@ 10,6 10,7 @@ import Permalink from 'flavours/glitch/components/permalink';
import { profileLink } from 'flavours/glitch/utils/backend_links';

import ActionBar from './action_bar';
import initialState from 'mastodon/initial_state';

export default class NavigationBar extends ImmutablePureComponent {



@@ 30,6 31,7 @@ export default class NavigationBar extends ImmutablePureComponent {
          <div>{this.props.account.get('display_name')}</div>
          <Permalink className='acct' href={this.props.account.get('url')} to={`/@${this.props.account.get('acct')}`}>
            <strong>@{this.props.account.get('acct')}</strong>
            <span>@{initialState.meta.domain}</span>
          </Permalink>
        </div>


M app/javascript/flavours/glitch/styles/components/drawer.scss => app/javascript/flavours/glitch/styles/components/drawer.scss +5 -2
@@ 112,11 112,14 @@

  .acct {
    display: block;
    color: $secondary-text-color;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    strong {
      color: $secondary-text-color;
      font-weight: 500;
    }
  }
}