mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 16:51:13 +00:00
Show language on posts and comments (#1026)
* Show language on posts and comments
* Revert "Show language on posts and comments"
This reverts commit 54267903fc
.
* Change language indicator look
This commit is contained in:
parent
c16488153f
commit
1717b5c18e
2 changed files with 15 additions and 1 deletions
|
@ -285,8 +285,15 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
)}
|
||||
</button>
|
||||
{this.linkBtn(true)}
|
||||
<span className="mx-1 badge badge-secondary">
|
||||
{
|
||||
this.props.allLanguages.find(
|
||||
lang => lang.id === cv.comment.language_id
|
||||
)?.name
|
||||
}
|
||||
</span>
|
||||
{/* This is an expanding spacer for mobile */}
|
||||
<div className="mr-lg-5 flex-grow-1 flex-lg-grow-0 unselectable pointer mx-2"></div>
|
||||
<div className="mr-lg-5 flex-grow-1 flex-lg-grow-0 unselectable pointer mx-2" />
|
||||
{showScores() && (
|
||||
<>
|
||||
<a
|
||||
|
|
|
@ -349,6 +349,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
</span>
|
||||
)}
|
||||
</li>
|
||||
<span className="mx-1 badge badge-secondary">
|
||||
{
|
||||
this.props.allLanguages.find(
|
||||
lang => lang.id === post_view.post.language_id
|
||||
)?.name
|
||||
}
|
||||
</span>
|
||||
<li className="list-inline-item">•</li>
|
||||
{url && !(hostname(url) == externalHost) && (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue