Skip to content
Snippets Groups Projects
Commit 38a4d4b6 authored by chris's avatar chris
Browse files

multiple drop down new styles

parent 8642eb8f
No related branches found
No related tags found
1 merge request!518Move tool groups
...@@ -16,6 +16,7 @@ import FakeCursorPlugin from '../plugins/FakeCursorPlugin'; ...@@ -16,6 +16,7 @@ import FakeCursorPlugin from '../plugins/FakeCursorPlugin';
const EditorWrapper = styled.div` const EditorWrapper = styled.div`
position: relative; position: relative;
height: 100%;
> .ProseMirror { > .ProseMirror {
padding: 5px !important; padding: 5px !important;
......
...@@ -119,6 +119,7 @@ export default ({ setPosition, position }) => { ...@@ -119,6 +119,7 @@ export default ({ setPosition, position }) => {
const { from } = selection; const { from } = selection;
const WaxSurface = activeView.dom.getBoundingClientRect(); const WaxSurface = activeView.dom.getBoundingClientRect();
const start = activeView.coordsAtPos(from); const start = activeView.coordsAtPos(from);
console.log(start, WaxSurface.top);
const left = start.left - WaxSurface.left - 75; const left = start.left - WaxSurface.left - 75;
const top = start.top - WaxSurface.top + 25; const top = start.top - WaxSurface.top + 25;
setPosition({ ...position, left, top }); setPosition({ ...position, left, top });
......
...@@ -14,16 +14,14 @@ const activeStylesSvg = css` ...@@ -14,16 +14,14 @@ const activeStylesSvg = css`
`; `;
const StyledIconActionContainer = styled.span` const StyledIconActionContainer = styled.span`
display: inline; display: inline-block;
padding: 2px;
${props => props.isActive && activeStylesContainer}
`;
const StyledIconAction = styled(Icon)`
height: 24px; height: 24px;
width: 24px; width: 24px;
cursor: pointer; cursor: pointer;
${props => props.isActive && activeStylesContainer}
`;
const StyledIconAction = styled(Icon)`
${props => props.isActive && activeStylesSvg} ${props => props.isActive && activeStylesSvg}
`; `;
......
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