Skip to content

Commit 3d0b4f3

Browse files
danieledsJuBan1
authored andcommitted
Ignore tab symbol width when showing tabs
1 parent d246a13 commit 3d0b4f3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

addon/show-invisibles/show-invisibles.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@
8888
'pointer-events: none;',
8989
'content: "' + String.fromCharCode(8594) + '";',
9090
'position: relative;',
91-
'left: 40%;',
91+
'width: 0;',
92+
'left: calc(50% - 0.5ch);',
93+
'transform: translate(-50%, 0);',
94+
'-webkit-transform: translate(-50%, 0);',
9295
'}'].join('');
9396
addStyle(cm, css, 'js-show-tab');
9497
}

0 commit comments

Comments
 (0)