Skip to content

Commit

Permalink
fix: resize avatar images
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthier-th committed Jun 23, 2024
1 parent b5738b4 commit f3e180a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/components/IssueList/IssueItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ const IssueItem = ({ issue }: IssueItemProps) => {
src={issue.createdBy.avatar}
alt=""
className="avatar-sm ml-1.5 object-cover"
fill
width={20}
height={20}
/>
<span className="truncate text-sm font-semibold group-hover:text-white group-hover:underline">
{issue.createdBy.displayName}
Expand Down
6 changes: 4 additions & 2 deletions src/components/RequestCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ const RequestCardError = ({ requestData }: RequestCardErrorProps) => {
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm"
fill
width={20}
height={20}
/>
<span className="truncate group-hover:underline">
{requestData.requestedBy.displayName}
Expand Down Expand Up @@ -373,7 +374,8 @@ const RequestCard = ({ request, onTitleData }: RequestCardProps) => {
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
fill
width={20}
height={20}
/>
<span className="truncate font-semibold group-hover:text-white group-hover:underline">
{requestData.requestedBy.displayName}
Expand Down
12 changes: 8 additions & 4 deletions src/components/RequestList/RequestItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ const RequestItemError = ({
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm ml-1.5"
fill
width={20}
height={20}
/>
<span className="truncate text-sm group-hover:underline">
{requestData.requestedBy.displayName}
Expand Down Expand Up @@ -245,7 +246,8 @@ const RequestItemError = ({
src={requestData.modifiedBy.avatar}
alt=""
className="avatar-sm ml-1.5"
fill
width={20}
height={20}
/>
<span className="truncate text-sm group-hover:underline">
{requestData.modifiedBy.displayName}
Expand Down Expand Up @@ -539,7 +541,8 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm ml-1.5 object-cover"
fill
width={20}
height={20}
/>
<span className="truncate text-sm font-semibold group-hover:text-white group-hover:underline">
{requestData.requestedBy.displayName}
Expand Down Expand Up @@ -595,7 +598,8 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
src={requestData.modifiedBy.avatar}
alt=""
className="avatar-sm ml-1.5 object-cover"
fill
width={20}
height={20}
/>
<span className="truncate text-sm font-semibold group-hover:text-white group-hover:underline">
{requestData.modifiedBy.displayName}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
}

img.avatar-sm {
@apply mr-1 h-5 w-5 scale-100 transform-gpu rounded-full transition duration-300 group-hover:scale-105;
@apply mr-1 scale-100 transform-gpu rounded-full transition duration-300 group-hover:scale-105;
}

.card-field {
Expand Down

0 comments on commit f3e180a

Please sign in to comment.