From 57c2f73cdb8cc785ef7653dcfd69cebe517a9be6 Mon Sep 17 00:00:00 2001
From: xmanrui <841206367@qq.com>
Date: Mon, 2 Mar 2026 04:28:32 +0800
Subject: [PATCH] fix feishu platform badge text truncation
---
app/page.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/page.tsx b/app/page.tsx
index ed926c1..bbd5d06 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -185,7 +185,7 @@ interface PlatformTestResult {
// 平台标签颜色
function PlatformBadge({ platform, agentId, gatewayPort, gatewayToken, gatewayHost, t, testResult }: { platform: Platform; agentId: string; gatewayPort: number; gatewayToken?: string; gatewayHost?: string; t: TFunc; testResult?: PlatformTestResult | null }) {
const pName = platform.name;
- const badgeWidthClass = "w-[7.25rem]";
+ const badgeWidthClass = "w-[8.25rem]";
let sessionKey: string;
if (pName === "feishu" && platform.botOpenId) {
@@ -225,9 +225,9 @@ function PlatformBadge({ platform, agentId, gatewayPort, gatewayToken, gatewayHo
title={t("agent.openChat")}
className={`inline-flex items-center gap-0.5 px-2 py-0.5 rounded-full text-xs font-medium cursor-pointer transition-all hover:scale-105 hover:shadow-md min-w-0 ${badgeWidthClass} ${badgeStyle}`}
>
- {label}
+ {label}
{pName === "feishu" && platform.accountId && (
- ({platform.accountId})
+ ({platform.accountId})
)}
↗