Skip to content

Commit

Permalink
🐛 Fix overlay margin applied even when minimap is on the right
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Oct 20, 2016
1 parent 3ac571b commit 240e2b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
`
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions styles/minimap.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 240e2b0

Please sign in to comment.