Skip to content

Commit

Permalink
fix: resolve various UI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthier-th committed Jun 23, 2024
1 parent ea43e3b commit fac81f7
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 49 deletions.
6 changes: 0 additions & 6 deletions src/components/MovieDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,6 @@ const MovieDetails = ({ movie }: MovieDetailsProps) => {
</Button>
</div>
</div>
<div className="relative z-10 flex h-14 items-center justify-between p-4 text-gray-200 transition duration-300 group-hover:text-white">
<div>{data.collection.name}</div>
<Button buttonSize="sm">
{intl.formatMessage(globalMessages.view)}
</Button>
</div>
</Link>
</div>
)}
Expand Down
32 changes: 18 additions & 14 deletions src/components/RequestCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@ const RequestCardError = ({ requestData }: RequestCardErrorProps) => {
href={`/users/${requestData.requestedBy.id}`}
className="group flex items-center"
>
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm"
width={20}
height={20}
/>
<span className="avatar-sm">
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
</span>
<span className="truncate group-hover:underline">
{requestData.requestedBy.displayName}
</span>
Expand Down Expand Up @@ -370,13 +372,15 @@ const RequestCard = ({ request, onTitleData }: RequestCardProps) => {
href={`/users/${requestData.requestedBy.id}`}
className="group flex items-center"
>
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
<span className="avatar-sm">
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
</span>
<span className="truncate font-semibold group-hover:text-white group-hover:underline">
{requestData.requestedBy.displayName}
</span>
Expand Down
64 changes: 36 additions & 28 deletions src/components/RequestList/RequestItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,15 @@ const RequestItemError = ({
href={`/users/${requestData.requestedBy.id}`}
className="group flex items-center truncate"
>
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm ml-1.5"
width={20}
height={20}
/>
<span className="avatar-sm ml-1.5">
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
</span>
<span className="truncate text-sm group-hover:underline">
{requestData.requestedBy.displayName}
</span>
Expand Down Expand Up @@ -242,13 +244,15 @@ const RequestItemError = ({
href={`/users/${requestData.modifiedBy.id}`}
className="group flex items-center truncate"
>
<Image
src={requestData.modifiedBy.avatar}
alt=""
className="avatar-sm ml-1.5"
width={20}
height={20}
/>
<span className="avatar-sm ml-1.5">
<Image
src={requestData.modifiedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
</span>
<span className="truncate text-sm group-hover:underline">
{requestData.modifiedBy.displayName}
</span>
Expand Down Expand Up @@ -537,13 +541,15 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
href={`/users/${requestData.requestedBy.id}`}
className="group flex items-center truncate"
>
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm ml-1.5 object-cover"
width={20}
height={20}
/>
<span className="avatar-sm ml-1.5">
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
</span>
<span className="truncate text-sm font-semibold group-hover:text-white group-hover:underline">
{requestData.requestedBy.displayName}
</span>
Expand Down Expand Up @@ -594,13 +600,15 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
href={`/users/${requestData.modifiedBy.id}`}
className="group flex items-center truncate"
>
<Image
src={requestData.modifiedBy.avatar}
alt=""
className="avatar-sm ml-1.5 object-cover"
width={20}
height={20}
/>
<span className="avatar-sm ml-1.5">
<Image
src={requestData.requestedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}
height={20}
/>
</span>
<span className="truncate text-sm font-semibold group-hover:text-white group-hover:underline">
{requestData.modifiedBy.displayName}
</span>
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 scale-100 transform-gpu rounded-full transition duration-300 group-hover:scale-105;
@apply mr-1 h-5 w-5 scale-100 transform-gpu rounded-full transition duration-300 group-hover:scale-105;
}

.card-field {
Expand Down

0 comments on commit fac81f7

Please sign in to comment.