Permalink
Browse files

Add a button to quickly disable python doc links

Closes #589
  • Loading branch information...
abe33 committed Apr 28, 2017
1 parent a7147ec commit a4dc07b3fd9c467aefb1dd5b62f085f67e5ae3e9
Showing with 22 additions and 0 deletions.
  1. +7 −0 lib/kite-wrapper.js
  2. +15 −0 styles/kite-wrapper.less
View
@@ -101,6 +101,7 @@ class KiteWrapper {
snippet (content) {
return `
<i class="icon icon-remove-close"></i>
<span class="collapser">docs <i class="icon icon-chevron-down"></i></span>
<ul>${content}</ul>
`
@@ -130,6 +131,12 @@ class KiteWrapper {
this.querySelector('.collapser').classList.toggle('collapse')
}
}))
this.subscriptions.add(this.subscribeTo(this, '.icon-remove-close', {
'click': () => {
atom.config.set('minimap.disablePythonDocLinks', true)
}
}))
}
detachedCallback () {
View
@@ -12,6 +12,21 @@ atom-text-editor, html {
flex: 0 0 10%;
flex-direction: column;
i.icon-remove-close {
position: absolute;
top: 10px;
right: 0px;
z-index: 2;
&::before {
font-size: 0.9em;
}
}
div {
position: relative;
}
&.left {
order: 1;
}

0 comments on commit a4dc07b

Please sign in to comment.