Commit d9eb45d6 authored by chris's avatar chris

set left menu bat

parent 4108b7d3
......@@ -90,21 +90,6 @@ export default {
select: state => true,
menu: props => <HeadingsDropDown key={uuid()} {...props} />
},
plain: {
title: "Change to General Text",
// content: icons.paragraph,
content: "General Text",
// active: blockActive(schema.nodes.paragraph),
// enable: setBlockType(schema.nodes.paragraph),
run(state, dispatch) {
setBlockType(state.config.schema.nodes.paragraph)(state, dispatch);
},
select: state => true,
menu: props => <Button key={uuid()} {...props} />
},
em: {
title: "Toggle emphasis",
content: icons.em,
......
import React from "react";
import { v4 as uuid } from "uuid";
import { setBlockType } from "prosemirror-commands";
import Button from "../components/button/Button";
export default {
plain: {
title: "Change to General Text",
// content: icons.paragraph,
content: "General Text",
// active: blockActive(schema.nodes.paragraph),
// enable: setBlockType(schema.nodes.paragraph),
run(state, dispatch) {
setBlockType(state.config.schema.nodes.paragraph)(state, dispatch);
},
select: state => true,
menu: props => <Button key={uuid()} {...props} />
}
};
......@@ -31,6 +31,17 @@
position: relative;
}
.wax-l-editoria .side-menu-container {
display: flex;
width: 10%;
height: 98%;
border-right: 1px solid rgba(0, 0, 0, 0.26);
}
.wax-l-editoria .side-menu {
margin-top: 15px;
}
.wax-l-editoria .wax-surface-container {
flex: 1;
position: relative;
......@@ -46,5 +57,5 @@
top: 0;
box-sizing: border-box;
padding: 0;
margin-left: 20px;
margin-left: 12%;
}
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