[MM-44066] Truncate server names in the system tray to 50 characters (#2096) (#2097)

(cherry picked from commit 4ebaebfd17)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
Mattermost Build 2022-05-10 16:46:19 +02:00 committed by GitHub
parent dd57331050
commit e550f6114d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
},