Commit a3cac2f2 authored by chris's avatar chris
Browse files

move right

parent e556a2ea
......@@ -60,10 +60,16 @@ const TopMenu = styled.div`
${th('colorFurniture')};
}
> div:last-child {
> div:nth-last-of-type(-n+2) {
margin-left: auto;
}
> div:last-child {
margin-left: 0;
margin-right: 10px;
}
> div[data-name="Tables"]{
border-right: none;
}
......
import React from 'react';
import { isEmpty } from 'lodash';
import { injectable } from 'inversify';
import { FullScreen } from 'wax-prosemirror-components';
import Tools from '../lib/Tools';
export default
@injectable()
class FullScreenTool extends Tools {
title = 'full screen';
icon = 'image';
icon = 'fullScreen';
name = 'FullScreen';
get run() {
return () => true;
}
select = (state, activeViewId) => {};
select = (state, activeViewId) => {
return true;
};
get enable() {
return state => {};
return state => {
return true;
};
}
renderTool(view) {
if (isEmpty(view)) return null;
return this._isDisplayed ? <span key="1"> full</span> : null;
return this._isDisplayed ? (
<FullScreen key="FullScreen" item={this.toJSON()} view={view} />
) : null;
}
}
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