From e550f6114d41124fa675684082ff772539d07416 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Tue, 10 May 2022 16:46:19 +0200 Subject: [PATCH] [MM-44066] Truncate server names in the system tray to 50 characters (#2096) (#2097) (cherry picked from commit 4ebaebfd17778c8c994dead5e5b2d6b6f81b1a58) Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> --- src/main/menus/tray.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/menus/tray.ts b/src/main/menus/tray.ts index e4445791..8fca16ab 100644 --- a/src/main/menus/tray.ts +++ b/src/main/menus/tray.ts @@ -13,7 +13,7 @@ export function createTemplate(config: CombinedConfig) { const template = [ ...teams.sort((teamA, teamB) => teamA.order - teamB.order).slice(0, 9).map((team) => { return { - label: team.name, + label: team.name.length > 50 ? `${team.name.slice(0, 50)}...` : team.name, click: () => { WindowManager.switchServer(team.name); },