1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

add third letter to hotbar icon

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-04-08 15:14:09 +03:00
parent f42cac6b3b
commit 6061075525

View File

@ -48,8 +48,10 @@ export class HotbarIcon extends React.Component<Props> {
if (splittedName.length === 1) {
return splittedName[0].substring(0, 2);
} else {
} else if (splittedName.length === 2) {
return splittedName[0].substring(0, 1) + splittedName[1].substring(0, 1);
} else {
return splittedName[0].substring(0, 1) + splittedName[1].substring(0, 1) + splittedName[2].substring(0, 1);
}
}