Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(views): stop the zh Discord sidebar label from truncating (#6359)

Jiayuan Zhang210482476215
diff --git a/packages/views/layout/join-discord-card.tsx b/packages/views/layout/join-discord-card.tsx
index b284d2d3d0..1cb188b80b 100644
--- a/packages/views/layout/join-discord-card.tsx
+++ b/packages/views/layout/join-discord-card.tsx
@@ -19,10 +19,17 @@ import { useT } from "../i18n";
*
* No external-link arrow, unlike the Help menu's outbound items: sharing one
* 224px strip with the help trigger leaves 128px for the label, and the arrow
- * plus the dismiss button together overflow that in en (109px) and zh (125px).
- * The dismiss affordance wins because it is a user-facing capability and the
- * arrow is only a hint — the Discord mark already signals the destination.
- * `flex-1 min-w-0` makes the label truncate rather than push the trigger off.
+ * plus the dismiss button together overflow that in the widest locale (en,
+ * 109px). The dismiss affordance wins because it is a user-facing capability
+ * and the arrow is only a hint — the Discord mark already signals the
+ * destination. `flex-1 min-w-0` makes the label truncate rather than push the
+ * trigger off.
+ *
+ * That 128px is the budget at the DEFAULT 256px sidebar, and the sidebar is
+ * user-resizable down to 200px — every 1px of drag takes 1px from the label.
+ * So a title that merely fits at 256px still truncates for anyone who has
+ * narrowed their sidebar; keep every locale's title comfortably under budget,
+ * not just under it (MUL-5704).
*/
export function JoinDiscordCard() {
const { t } = useT("layout");
diff --git a/packages/views/locales/zh-Hans/layout.json b/packages/views/locales/zh-Hans/layout.json
index d8dc31bc22..85d55e5f65 100644
--- a/packages/views/locales/zh-Hans/layout.json
+++ b/packages/views/locales/zh-Hans/layout.json
@@ -55,7 +55,7 @@
"configure_group": "配置",
"unread_overflow": "99+",
"discord_card": {
- "title": "加入我们的 Discord",
+ "title": "加入 Discord",
"dismiss": "关闭"
}
}