Skip to content

Commit

Permalink
Fix blog post's authors section on mobile resolutions (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik authored Sep 27, 2023
1 parent 556a488 commit ba68a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theme/BlogPostItem/Header/Author/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default function BlogPostItemHeaderAuthor({ author }: Props) {
const { name, title, url, imageURL, email } = author;
const link = url || (email && `mailto:${email}`) || undefined;
return (
<div className="flex gap-4 items-center shrink-0">
<div className="flex gap-4 items-center">
{imageURL && (
<MaybeLink href={link}>
<MaybeLink href={link} className="shrink-0">
<img src={imageURL} alt={name} className="w-14 h-14 rounded-full" />
</MaybeLink>
)}
Expand Down

0 comments on commit ba68a15

Please sign in to comment.