Commit c17a6e9e authored by chris's avatar chris

cleanup

parent 661d8193
......@@ -57,16 +57,15 @@ class AbstractProvider extends EventEmitter {
let currentNodes = clone(nodes)
const containers = this.getAllAvailableSurfaces()
let container = ''
// sort notes by
// the index of the containing block
// their position within that block
currentNodes = map(currentNodes, node => {
const blockId = node.path[0]
forEach(containers, cont => {
let container = containers.find(cont => {
if (includes(cont.nodes, blockId)) {
container = cont
return cont
}
})
// This is actually not correct.
......@@ -205,10 +204,10 @@ class AbstractProvider extends EventEmitter {
getContainerForSelection(selection) {
const containersEls = this.getAllAvailableSurfaces(this.document)
const selectionNodeId = selection.getNodeId()
let container = ''
forEach(containersEls, cont => {
let container = containersEls.find(cont => {
if (includes(cont.nodes, selectionNodeId)) {
container = cont
return cont
}
})
if (container === '') container = containersEls[0]
......
.change-case-wrapper {
width: 110px;
font-size: 12px;
width: 120px;
font-size: 13px;
.choose-case {
margin-top: 5px;
margin-top: 3px;
cursor: pointer;
}
i {
......@@ -19,14 +19,14 @@
}
}
.se-options {
width: 110px;
width: 120px;
position: fixed;
z-index: 99999;
background-color: #4990e2;
border: 1px solid #ccc;
border-top: 1px solid #ccc;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 5px 0px 5px 0px;
padding: 2px 0px 5px 0px;
}
button {
font-size: 13px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment