Fix heading level in edit
This commit is contained in:
parent
4ffafd4bb5
commit
b4919d6c3e
|
@ -1,2 +0,0 @@
|
|||
.sb-global-insert {
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
import { defineComponent } from 'vue';
|
||||
import { ITreeNode } from '../types';
|
||||
import { useBlockTree } from '../use-block-tree';
|
||||
import { useActivation } from '../use-activation';
|
||||
|
||||
import { SbBlockPicker } from './BlockPicker';
|
||||
import { SbButton } from './Button';
|
||||
|
||||
import './GlobalInsert.scss';
|
||||
|
||||
export const SbGlobalInsert = defineComponent({
|
||||
name: 'sb-global-insert',
|
||||
|
||||
setup() {
|
||||
const { blockTree } = useBlockTree();
|
||||
const {
|
||||
activate,
|
||||
activeBlockId,
|
||||
} = useActivation();
|
||||
|
||||
return () => (
|
||||
blockTree.value
|
||||
? <SbBlockPicker
|
||||
class="sb-global-insert"
|
||||
v-slots={{
|
||||
default: ({ toggle }: { toggle: Function }) => <SbButton {...{ onClick: toggle }}>+</SbButton>,
|
||||
}}
|
||||
/>
|
||||
: ''
|
||||
);
|
||||
},
|
||||
});
|
|
@ -4,7 +4,6 @@ import {
|
|||
} from 'vue';
|
||||
import { IBlockData } from '../types';
|
||||
import { SbTreeBlockSelect } from './TreeBlockSelect';
|
||||
import { SbGlobalInsert } from './GlobalInsert';
|
||||
|
||||
import './MainMenu.scss';
|
||||
|
||||
|
@ -22,7 +21,6 @@ export const SbMainMenu = defineComponent({
|
|||
return () => (
|
||||
<div class="sb-main-menu">
|
||||
<SbTreeBlockSelect />
|
||||
<SbGlobalInsert />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
|
|
|
@ -88,7 +88,7 @@ export default defineComponent({
|
|||
const classes = computed(() => ({
|
||||
'sb-heading': true,
|
||||
'sb-heading_focused': localData.focused,
|
||||
[`sb-heading_align${localData.align}`]: true,
|
||||
[`sb-heading_align-${localData.align}`]: true,
|
||||
[`sb-heading_${localData.level}`]: true,
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue