remove extra padding when line numbers are hidden

pull/240/merge
nightwing 2016-08-10 14:33:29 +04:00
rodzic 1f3d3af3e2
commit 1a999f4769
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -601,7 +601,7 @@ define(function(require, exports, module) {
items: [
new MenuItem({
position: 10,
caption: "Show Line Number",
caption: "Show Line Numbers",
type: "check",
checked: "user/ace/@showLineNumbers"
}, handle),
@ -2231,7 +2231,7 @@ define(function(require, exports, module) {
gutterRenderer = null;
else
gutterRenderer = noNumbers;
dom.setCssClass(renderer.$gutter, "ace_gutter-compact", !value);
renderer.$gutterLayer.$renderer = gutterRenderer;
if (gutterRenderer && gutterRenderer.attach)
gutterRenderer.attach(ace);

Wyświetl plik

@ -26,6 +26,15 @@
z-index : -1;
}
.ace_gutter-compact:not(.ace_folding-enabled) > .ace_gutter-layer > .ace_gutter-cell {
padding-left: 15px!important;
padding-right: 5px!important;
}
.ace_gutter-compact.ace_folding-enabled > .ace_gutter-layer > .ace_gutter-cell {
padding-left: 16px!important;
padding-right: 12px!important;
}
.dark .ace_gutter .ace_gutter_active_line {
background-color: rgba(255, 255, 255, 0.07);
}