From 240e2b0b1183a183f2ae1f4a8e3a423f2ed19b2e Mon Sep 17 00:00:00 2001 From: abe33 Date: Thu, 20 Oct 2016 13:58:21 +0200 Subject: [PATCH] :bug: Fix overlay margin applied even when minimap is on the right --- lib/minimap-element.js | 7 ++++++- styles/minimap.less | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) 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 {