Skip to content

Commit

Permalink
Merge pull request #1597 from jsit/feat/hide-avatars-on-listings
Browse files Browse the repository at this point in the history
feat(UI): Make post listing (icon) avatars smaller (line-height)
  • Loading branch information
SleeplessOne1917 authored Jun 27, 2023
2 parents a5fc6bf + af67240 commit 531630c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ br.big {
}

.img-icon {
width: 2rem;
height: 2rem;
width: calc(var(--bs-body-line-height) * 1em);
height: calc(var(--bs-body-line-height) * 1em);
border-radius: 0.25em;
}

.tribute-container ul {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/common/pictrs-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
"img-expanded slight-radius":
!this.props.thumbnail && !this.props.icon,
"img-blur": this.props.thumbnail && this.props.nsfw,
"rounded-circle img-cover img-icon me-2": this.props.icon,
"img-cover img-icon me-1": this.props.icon,
"ms-2 mb-0 rounded-circle img-cover avatar-overlay":
this.props.iconOverlay,
"avatar-pushup": this.props.pushup,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/post/post-listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
const post_view = this.postView;
return (
<span className="small">
<PersonListing person={post_view.creator} muted={true} />
<PersonListing person={post_view.creator} />
{this.creatorIsMod_ && (
<span className="mx-1 badge text-bg-light">
{I18NextService.i18n.t("mod")}
Expand Down

0 comments on commit 531630c

Please sign in to comment.