[MM-44066] Truncate server names in the system tray to 50 characters (#2096)
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user