]> Untitled Git - lemmy-ui.git/commitdiff
Merge remote-tracking branch 'lemmy/main' into feat/hide-avatars-on-listings
authorJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 21:49:37 +0000 (17:49 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 21:49:37 +0000 (17:49 -0400)
* lemmy/main:
  feat(UI): Fix some link hover colors

1  2 
src/shared/components/post/post-listing.tsx

index a27d8334dc9338c1a43ef52b5132dc920b170905,ac90b0d8fb13bdd04731eb7409fa9884331aa5b9..249f28ad3ecfd2b7df6dac3fef962f836ccbe72f
@@@ -106,7 -106,6 +106,7 @@@ interface PostListingProps 
    siteLanguages: number[];
    showCommunity?: boolean;
    showBody?: boolean;
 +  hideAvatars?: boolean;
    hideImage?: boolean;
    enableDownvotes?: boolean;
    enableNsfw?: boolean;
@@@ -398,10 -397,7 +398,10 @@@ export class PostListing extends Compon
      const post_view = this.postView;
      return (
        <span className="small">
 -        <PersonListing person={post_view.creator} muted={true} />
 +        <PersonListing
 +          person={post_view.creator}
 +          hideAvatar={this.props.hideAvatars}
 +        />
          {this.creatorIsMod_ && (
            <span className="mx-1 badge text-bg-light">
              {I18NextService.i18n.t("mod")}
            <>
              {" "}
              {I18NextService.i18n.t("to")}{" "}
 -            <CommunityLink community={post_view.community} />
 +            <CommunityLink
 +              community={post_view.community}
 +              hideAvatar={this.props.hideAvatars}
 +            />
            </>
          )}
          {post_view.post.language_id !== 0 && (
        <Link
          className={`d-inline ${
            !post.featured_community && !post.featured_local
-             ? "text-body"
-             : "text-primary"
+             ? "link-dark"
+             : "link-primary"
          }`}
          to={`/post/${post.id}`}
          title={I18NextService.i18n.t("comments")}
                <a
                  className={
                    !post.featured_community && !post.featured_local
-                     ? "text-body"
-                     : "text-primary"
+                     ? "link-dark"
+                     : "link-primary"
                  }
                  href={url}
                  title={url}
      const url = post.url;
  
      return (
-       <p className="d-flex text-muted align-items-center gap-1 small m-0">
+       <p className="small m-0">
          {url && !(hostname(url) === getExternalHost()) && (
            <a
-             className="text-muted fst-italic"
+             className="fst-italic link-dark link-opacity-75 link-opacity-100-hover"
              href={url}
              title={url}
              rel={relTags}