mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 23:11:14 +00:00
Changes to language tag
- Dont use bright white color because its not that important - Hide tag in case of undetermined (doesnt add any information)
This commit is contained in:
parent
ffe95ee1c6
commit
90a9f72817
|
@ -1 +1 @@
|
|||
Subproject commit a1fff8b481f4b02327e4ee04088606af627628f2
|
||||
Subproject commit 007e53683768aeba63e9e4c179c1d240217bcee2
|
|
@ -283,13 +283,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>
|
||||
{cv.comment.language_id != 0 && (
|
||||
<span className="">
|
||||
{
|
||||
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" />
|
||||
{showScores() && (
|
||||
|
|
|
@ -344,13 +344,15 @@ 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>
|
||||
{post_view.post.language_id != 0 && (
|
||||
<span className="list-inline-item">
|
||||
{
|
||||
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