feat: new dbgpts modules (#1910)

Co-authored-by: 途杨 <tuyang.yhj@antgroup.com>
Co-authored-by: lhwan <1017484907@qq.com>
This commit is contained in:
明天
2024-08-28 21:31:42 +08:00
committed by GitHub
parent bb5d2d1f3d
commit d7a893e1a7
289 changed files with 3533 additions and 901 deletions

View File

@@ -29,6 +29,7 @@ const BlurredCard: React.FC<{
</p>
);
}
return (
<div className={cls('hover-underline-gradient flex justify-center mt-6 relative group w-1/3 px-2 mb-6', className)}>
<div
@@ -36,20 +37,20 @@ const BlurredCard: React.FC<{
className="backdrop-filter backdrop-blur-lg cursor-pointer bg-white bg-opacity-70 border-2 border-white rounded-lg shadow p-4 relative w-full h-full dark:border-[#6f7f95] dark:bg-[#6f7f95] dark:bg-opacity-60"
>
<div className="flex items-end relative bottom-8 justify-between w-full">
<div className="flex items-end gap-4 w-11/12">
<div className="flex items-end gap-4 w-11/12 flex-1">
<div className="bg-white rounded-lg shadow-sm w-14 h-14 flex items-center p-3">
{scene ? (
<AppDefaultIcon scene={scene} width={14} height={14} />
) : (
logo && <Image src={logo} width={44} height={44} alt={name} className="w-8 min-w-8 rounded-full" />
logo && <Image src={logo} width={44} height={44} alt={name} className="w-8 min-w-8 rounded-full max-w-none" />
)}
</div>
<div>
<div className='flex-1'>
{/** 先简单判断下 */}
{name.length > 6 ? (
<Tooltip title={name}>
<span
className="truncate font-semibold text-base"
className="line-clamp-1 text-ellipsis font-semibold text-base"
style={{
maxWidth: '60%',
}}
@@ -59,7 +60,7 @@ const BlurredCard: React.FC<{
</Tooltip>
) : (
<span
className="truncate font-semibold text-base"
className="line-clamp-1 text-ellipsis font-semibold text-base"
style={{
maxWidth: '60%',
}}
@@ -70,7 +71,7 @@ const BlurredCard: React.FC<{
</div>
</div>
<span
className={cls({
className={cls('shrink-0', {
hidden: rightTopHover,
'group-hover:block': rightTopHover,
})}