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

This commit is contained in:
Devin Binnie
2022-05-10 10:46:08 -04:00
committed by GitHub
parent 9d3c1327b9
commit 4ebaebfd17

View File

@@ -13,7 +13,7 @@ export function createTemplate(config: CombinedConfig) {
const template = [ const template = [
...teams.sort((teamA, teamB) => teamA.order - teamB.order).slice(0, 9).map((team) => { ...teams.sort((teamA, teamB) => teamA.order - teamB.order).slice(0, 9).map((team) => {
return { return {
label: team.name, label: team.name.length > 50 ? `${team.name.slice(0, 50)}...` : team.name,
click: () => { click: () => {
WindowManager.switchServer(team.name); WindowManager.switchServer(team.name);
}, },