mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...
This commit is contained in:
parent
a106050ba3
commit
ac1433e84b
112 changed files with 1375 additions and 1898 deletions
|
@ -63,7 +63,7 @@ function HorizontalMenuView(options) {
|
|||
}
|
||||
|
||||
var text = strUtil.stylizeString(
|
||||
item.text,
|
||||
item.text,
|
||||
this.hasFocus && item.focused ? self.focusTextStyle : self.textStyle);
|
||||
|
||||
var drawWidth = text.length + self.getSpacer().length * 2; // * 2 = sides
|
||||
|
@ -72,7 +72,7 @@ function HorizontalMenuView(options) {
|
|||
ansi.goto(self.position.row, item.col) +
|
||||
(index === self.focusedItemIndex ? self.getFocusSGR() : self.getSGR()) +
|
||||
strUtil.pad(text, drawWidth, self.fillChar, 'center')
|
||||
);
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue