dsh-neotui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/views.js +2 -2
package/package.json
CHANGED
package/src/views.js
CHANGED
|
@@ -2607,7 +2607,7 @@ export class App {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
|
|
2609
2609
|
#renderTabBar(s) {
|
|
2610
|
-
const x = this.sidebarVisible ?
|
|
2610
|
+
const x = this.sidebarVisible ? this.sidebarWidth : 0;
|
|
2611
2611
|
const w = this.screen.w - x;
|
|
2612
2612
|
s.fillRect(x, 0, x + w - 1, 0, " ", { bg: T.PANEL });
|
|
2613
2613
|
const tabs = [...this.#modeTabs()];
|
|
@@ -2624,7 +2624,7 @@ export class App {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
|
|
2626
2626
|
#clickTab(px) {
|
|
2627
|
-
const x = this.sidebarVisible ?
|
|
2627
|
+
const x = this.sidebarVisible ? this.sidebarWidth : 0;
|
|
2628
2628
|
const tabs = [...this.#modeTabs()];
|
|
2629
2629
|
const panelLabel = this.#panelLabel(this.mode);
|
|
2630
2630
|
if (panelLabel) tabs.push([this.mode, panelLabel]);
|