Skip to content

Commit 55ce067

Browse files
committed
优化多行显示省略号,样式修改
1 parent 857366b commit 55ce067

File tree

1 file changed

+3
-3
lines changed
  • web/app/(commonLayout)/agent/center

1 file changed

+3
-3
lines changed

web/app/(commonLayout)/agent/center/Apps.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ const Apps = () => {
163163
<img className="mr-8 h-12 rounded-2xl w-12 "
164164
src={app.imageUrl}
165165
alt=""/>
166-
<div>
166+
<div className="flex-1">
167167
<h3 className="font-bold">{app.name}</h3>
168-
<div className="mt-3 text-sm">{app.description}</div>
168+
<div className="mt-3 text-sm w-5/5 overflow-hidden line-clamp-3">{app.description}</div>
169169
<div className="text-xs text-right">
170-
<div className="mt-5 flex justify-end">来自: {app.author}</div>
170+
{app.author && <div className="mt-5 flex justify-end">来自: {app.author}</div>}
171171
<div className="flex justify-end">
172172
上架状态: <span className={app.agentStatus === 1 ? 'text-primary-700' : 'text-red-700'}>{app.agentStatus === 1 ? '已上架' : '未上架'}</span>
173173
</div>

0 commit comments

Comments
 (0)