mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-01 16:15:24 +00:00
fix: recent activity card no longer cuts off host names early
This commit is contained in:
1 parent
6217b91ae2
commit
f3ed947a7c
1 file changed
+8
-6
@@ -581,19 +581,21 @@ function RecentActivityCard({
|
|||||||
const target = activityTarget(item.type);
|
const target = activityTarget(item.type);
|
||||||
if (host && target) onOpenTab(host, target.tab);
|
if (host && target) onOpenTab(host, target.tab);
|
||||||
}}
|
}}
|
||||||
className="flex items-center justify-between px-4 py-2 border-b border-border last:border-0 hover:bg-muted/50 cursor-pointer"
|
className="flex items-center justify-between gap-3 px-4 py-2 border-b border-border last:border-0 hover:bg-muted/50 cursor-pointer"
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2 min-w-0 flex-1">
|
||||||
<span
|
<span
|
||||||
className={`size-1.5 rounded-full shrink-0 ${getStatusClasses(host?.online ?? false, statusScheme, "dot", statusLoading)}`}
|
className={`size-1.5 rounded-full shrink-0 ${getStatusClasses(host?.online ?? false, statusScheme, "dot", statusLoading)}`}
|
||||||
/>
|
/>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col min-w-0 flex-1">
|
||||||
<span className="text-xs font-semibold truncate max-w-24">
|
<span className="text-xs font-semibold truncate">
|
||||||
{item.hostName}
|
{item.hostName}
|
||||||
</span>
|
</span>
|
||||||
<div className="flex items-center gap-1 text-muted-foreground">
|
<div className="flex items-center gap-1 min-w-0 text-muted-foreground">
|
||||||
{typeIcon(item.type)}
|
{typeIcon(item.type)}
|
||||||
<span className="text-[10px]">{typeLabel(item.type)}</span>
|
<span className="text-[10px] truncate">
|
||||||
|
{typeLabel(item.type)}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user