mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-28 00:25:33 +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
0d30f4c731
commit
a447e432db
|
@ -282,8 +282,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
|
||||
|
|
|
@ -342,6 +342,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) === getExternalHost()) && (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue