Add domain to acct display in sidebar

This commit is contained in:
Laura Hausmann 2023-10-18 01:11:56 +02:00
parent aa0801e1f3
commit 891d6c5fa5
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 7 additions and 2 deletions

View file

@ -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>

View file

@ -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;
}
}
}