diff --git a/lib/minimap-element.js b/lib/minimap-element.js index e768bea3..7a8e3156 100644 --- a/lib/minimap-element.js +++ b/lib/minimap-element.js @@ -33,7 +33,12 @@ const updateOverlayStyle = (basis) => { } ` } else { - overlayStyle.textContent = '' + overlayStyle.textContent = ` + atom-text-editor[with-minimap]::shadow atom-overlay, + atom-text-editor[with-minimap] atom-overlay { + margin-left: 10%; + } + ` } } } diff --git a/styles/minimap.less b/styles/minimap.less index a406d1ec..b59de9fc 100644 --- a/styles/minimap.less +++ b/styles/minimap.less @@ -11,10 +11,6 @@ atom-text-editor[with-minimap] { flex: 1 0 90%; width: 90%; } - - atom-overlay { - margin-left: 10%; - } } atom-text-editor::shadow, atom-text-editor, html {