Skip to content

Commit

Permalink
Fix video card width and title
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Oct 24, 2023
1 parent 799f858 commit b14ef6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/app/components/VideoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type VideoCardData =
export const VideoCard = ({ video }: { video: VideoCardData }) => {
return (
<div
className={tw`p-4 rounded shadow bg-white dark:bg-gray-900 dark:text-white`}
className={tw`p-4 rounded shadow bg-white dark:bg-gray-900 dark:text-white max-w-[378px]`}
>
<a href={`/videos/${video.share_id}`}>
<div
Expand Down Expand Up @@ -71,7 +71,7 @@ export const VideoCard = ({ video }: { video: VideoCardData }) => {
)}
</div>
<div className={tw`flex items-center space-x-3`}>
<div>
<div className={tw`min-w-[40px]`}>
{video.requested_by_discord_avatar_url
? (
<img
Expand All @@ -98,8 +98,8 @@ export const VideoCard = ({ video }: { video: VideoCardData }) => {
</svg>
)}
</div>
<div className={tw`flex-shrink items-center truncate`}>
<div className={tw`text-sm font-bold`}>
<div className={tw`flex-shrink items-center overflow-hidden`}>
<div className={tw`text-sm font-bold truncate`} title={video.title}>
{video.title}
</div>
<div className={tw`h-2 mb-3 text-sm`}>
Expand Down

0 comments on commit b14ef6a

Please sign in to comment.