Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions my-link-uploader/src/components/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const LinkCard: React.FC<LinkCardProps> = ({ link, currentUser, onDelete, onClic
// Layout for owned links with images
if (isOwner && hasImage) {
return (
<div className="bg-gray-800 rounded-lg shadow-lg overflow-hidden flex flex-col">
<div className="bg-gray-800 rounded-lg shadow-lg overflow-hidden flex flex-col h-full min-h-[350px]">
<div className="relative aspect-video">
<img
src={link.preview!.image}
Expand Down Expand Up @@ -165,7 +165,7 @@ const LinkCard: React.FC<LinkCardProps> = ({ link, currentUser, onDelete, onClic
// Layout for owned links without images
if (isOwner && !hasImage) {
return (
<div className="bg-gray-800 rounded-lg shadow-lg overflow-hidden flex flex-col">
<div className="bg-gray-800 rounded-lg shadow-lg overflow-hidden flex flex-col h-full min-h-[350px]">
<div className="relative aspect-video flex items-center justify-center bg-gradient-to-br from-purple-600 to-pink-500">
<LinkIcon size={48} className="text-white" />
</div>
Expand Down Expand Up @@ -222,7 +222,7 @@ const LinkCard: React.FC<LinkCardProps> = ({ link, currentUser, onDelete, onClic

// Layout for links not owned by the user
return (
<div className="bg-gray-800 rounded-lg shadow-lg overflow-hidden flex flex-col">
<div className="bg-gray-800 rounded-lg shadow-lg overflow-hidden flex flex-col h-full min-h-[350px]">
<div className="relative aspect-video">
{hasImage ? (
<img
Expand Down