Merge pull request #1370 from jsit/feat/badgeify-post-title-info

feat: Badge-ify NSFW and removed by mod title info
This commit is contained in:
SleeplessOne1917 2023-06-19 03:05:12 +00:00 committed by GitHub
commit 1ebddbc3c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -552,7 +552,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</button>
))}
{post.removed && (
<small className="ml-2 text-muted font-italic">
<small className="ml-2 badge text-bg-secondary">
{i18n.t("removed")}
</small>
)}
@ -589,9 +589,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</small>
)}
{post.nsfw && (
<small className="ml-2 text-muted font-italic">
{i18n.t("nsfw")}
</small>
<small className="ml-2 badge text-bg-danger">{i18n.t("nsfw")}</small>
)}
</div>
);