]> Untitled Git - lemmy-ui.git/commitdiff
use badge-muted
authorFelix Ableitner <me@nutomic.com>
Wed, 24 May 2023 10:22:24 +0000 (12:22 +0200)
committerFelix Ableitner <me@nutomic.com>
Wed, 24 May 2023 10:22:24 +0000 (12:22 +0200)
src/shared/components/comment/comment-node.tsx
src/shared/components/post/post-listing.tsx

index 83477864574e1c7855a3c38a36b07d55c733f425..fae636e9381d45709be024a07783db48607ce654 100644 (file)
@@ -240,23 +240,23 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
               {cv.comment.distinguished && (
                 <Icon icon="shield" inline classes={`text-danger mr-2`} />
               )}
-              {isMod_ && (
+              {this.isPostCreator && (
                 <div className="badge badge-light d-none d-sm-inline mr-2">
+                  {i18n.t("creator")}
+                </div>
+              )}
+              {isMod_ && (
+                <div className="badge badge-muted d-none d-sm-inline mr-2">
                   {i18n.t("mod")}
                 </div>
               )}
               {isAdmin_ && (
-                <div className="badge badge-light d-none d-sm-inline mr-2">
+                <div className="badge badge-muted d-none d-sm-inline mr-2">
                   {i18n.t("admin")}
                 </div>
               )}
-              {this.isPostCreator && (
-                <div className="badge badge-light d-none d-sm-inline mr-2">
-                  {i18n.t("creator")}
-                </div>
-              )}
               {cv.creator.bot_account && (
-                <div className="badge badge-light d-none d-sm-inline mr-2">
+                <div className="badge badge-muted d-none d-sm-inline mr-2">
                   {i18n.t("bot_account").toLowerCase()}
                 </div>
               )}
@@ -283,8 +283,8 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
                 )}
               </button>
               {this.linkBtn(true)}
-              {cv.comment.language_id != 0 && (
-                <span className="">
+              {cv.comment.language_id !== 0 && (
+                <span className="badge badge-muted d-none d-sm-inline mr-2">
                   {
                     this.props.allLanguages.find(
                       lang => lang.id === cv.comment.language_id
index 916c8c932fe7bddbf0ea8b9758b69196cc0fee49..137ded9e80626b20ab5b81d264301ec1161df1af 100644 (file)
@@ -327,13 +327,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
           <PersonListing person={post_view.creator} />
 
           {this.creatorIsMod_ && (
-            <span className="mx-1 badge badge-light">{i18n.t("mod")}</span>
+            <span className="mx-1 badge badge-muted">{i18n.t("mod")}</span>
           )}
           {this.creatorIsAdmin_ && (
-            <span className="mx-1 badge badge-light">{i18n.t("admin")}</span>
+            <span className="mx-1 badge badge-muted">{i18n.t("admin")}</span>
           )}
           {post_view.creator.bot_account && (
-            <span className="mx-1 badge badge-light">
+            <span className="mx-1 badge badge-muted">
               {i18n.t("bot_account").toLowerCase()}
             </span>
           )}
@@ -344,8 +344,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
             </span>
           )}
         </li>
-        {post_view.post.language_id != 0 && (
-          <span className="list-inline-item">
+        {post_view.post.language_id !== 0 && (
+          <span className="mx-1 badge badge-muted">
             {
               this.props.allLanguages.find(
                 lang => lang.id === post_view.post.language_id