save
This commit is contained in:
parent
f273be61d4
commit
18c4efc908
|
@ -13,9 +13,9 @@ const LinkBlock = ({ val }: { val: _Link }) => {
|
|||
return <Link className="flex gap-x-2 bg-white rounded-lg py-4 pl-2 cursor-pointer duration-150 hover:-translate-y-1 shadow-sm"
|
||||
href={val.articleId ? `/article/${val.articleId}` : val.link || ''} target="_blank">
|
||||
<Image alt="image" src={val.logoLink} className="w-[40px] h-[40px]" width={40} height={40}></Image>
|
||||
<div className="flex-1 w-0 flex flex-col justify-between">
|
||||
<div className="flex-2 w-0 flex flex-col justify-between">
|
||||
<span className=" font-bold text-ellipsis overflow-hidden whitespace-nowrap">{val.name}</span>
|
||||
<span className=" text-ellipsis overflow-hidden whitespace-nowrap text-[#666] text-xs" title={val.description}>{val.description}</span>
|
||||
<span className=" text-ellipsis overflow-hidden whitespace-nowrap text-[#665] text-xs" title={val.description}>{val.description}</span>
|
||||
</div>
|
||||
</Link>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue