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:
parent
f42cac6b3b
commit
6061075525
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user