mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-17 07:00:15 +00:00
feat: new dbgpts modules (#1910)
Co-authored-by: 途杨 <tuyang.yhj@antgroup.com> Co-authored-by: lhwan <1017484907@qq.com>
This commit is contained in:
@@ -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,
|
||||
})}
|
||||
|
Reference in New Issue
Block a user