Skip to content

Commit

Permalink
X2-6577 Fix spacing when it has a delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Sep 28, 2023
1 parent 08e0636 commit 1ee821c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/ImageUpload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ export const ImageUpload = ({
const hasRequirements = requirements?.trim().length > 0;

return (
<div className="flex items-center space-x-8 rounded bg-gray-lighter p-4">
<div className={clsx("flex items-center rounded bg-gray-lighter p-4", hasDelete ? "space-x-2.5" : "space-x-3")}>
<div>
{src ? (
<Logo src={src} size={size} />
) : (
<div className={clsx(Logo.sizes[size], "flex items-center justify-center")}>
<div
className={clsx(
Logo.sizes[size],
"flex items-center justify-center rounded border border-gray-light",
)}
>
<ImageIcon size="large" className="text-gray" />
</div>
)}
Expand Down

0 comments on commit 1ee821c

Please sign in to comment.