kopia lustrzana https://github.com/c9/core
remove extra padding when line numbers are hidden
rodzic
1f3d3af3e2
commit
1a999f4769
|
@ -601,7 +601,7 @@ define(function(require, exports, module) {
|
||||||
items: [
|
items: [
|
||||||
new MenuItem({
|
new MenuItem({
|
||||||
position: 10,
|
position: 10,
|
||||||
caption: "Show Line Number",
|
caption: "Show Line Numbers",
|
||||||
type: "check",
|
type: "check",
|
||||||
checked: "user/ace/@showLineNumbers"
|
checked: "user/ace/@showLineNumbers"
|
||||||
}, handle),
|
}, handle),
|
||||||
|
@ -2231,7 +2231,7 @@ define(function(require, exports, module) {
|
||||||
gutterRenderer = null;
|
gutterRenderer = null;
|
||||||
else
|
else
|
||||||
gutterRenderer = noNumbers;
|
gutterRenderer = noNumbers;
|
||||||
|
dom.setCssClass(renderer.$gutter, "ace_gutter-compact", !value);
|
||||||
renderer.$gutterLayer.$renderer = gutterRenderer;
|
renderer.$gutterLayer.$renderer = gutterRenderer;
|
||||||
if (gutterRenderer && gutterRenderer.attach)
|
if (gutterRenderer && gutterRenderer.attach)
|
||||||
gutterRenderer.attach(ace);
|
gutterRenderer.attach(ace);
|
||||||
|
|
|
@ -26,6 +26,15 @@
|
||||||
z-index : -1;
|
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 {
|
.dark .ace_gutter .ace_gutter_active_line {
|
||||||
background-color: rgba(255, 255, 255, 0.07);
|
background-color: rgba(255, 255, 255, 0.07);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue