Commit f6ba1efe authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Tabs: fix active bar width when only one tab

parent 46036317
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
return true; return true;
} else { } else {
tabSize = $el[`client${firstUpperCase(sizeName)}`]; tabSize = $el[`client${firstUpperCase(sizeName)}`];
if (sizeName === 'width') { if (sizeName === 'width' && this.tabs.length > 1) {
tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40; tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40;
} }
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment