diff --git a/src/components/editor.tsx b/src/components/editor.tsx index 1cf1e60..37381cd 100644 --- a/src/components/editor.tsx +++ b/src/components/editor.tsx @@ -1185,8 +1185,8 @@ export const Editor: FC = ({ onUpdate: updateState, data: editor, . type="text" size="small" className={mergeClassNames( - "b3-editor-button-filter", - filterOption.filterCase && "b3-editor-button-filter-selected" + "b3-editor-filter", + filterOption.filterCase && "b3-editor-filter-selected" )} icon={} onClick={() => @@ -1201,8 +1201,8 @@ export const Editor: FC = ({ onUpdate: updateState, data: editor, . type="text" size="small" className={mergeClassNames( - "b3-editor-button-filter", - filterOption.filterFocus && "b3-editor-button-filter-selected" + "b3-editor-filter", + filterOption.filterFocus && "b3-editor-filter-selected" )} icon={} onClick={() => diff --git a/src/components/explorer.tsx b/src/components/explorer.tsx index fa2c748..652b4e9 100644 --- a/src/components/explorer.tsx +++ b/src/components/explorer.tsx @@ -804,7 +804,19 @@ export const Explorer: FC = () => { ); } else { - return {node.title}; + return ( +
+
+ {node.title} +
+
+ ); } }} allowDrop={(options) => { @@ -826,6 +838,19 @@ export const Explorer: FC = () => { fieldNames={{ key: "title" }} treeData={nodeTree ? [nodeTree] : []} draggable={{ icon: false, nodeDraggable: (node) => !!node.isLeaf }} + titleRender={(node) => ( +
+
+ {node.title} +
+
+ )} onSelect={(_, info) => { const node = info.node; if (node && node.isLeaf) { diff --git a/src/index.scss b/src/index.scss index b26a781..f126461 100644 --- a/src/index.scss +++ b/src/index.scss @@ -86,8 +86,13 @@ body { cursor: pointer !important; } -.ant-tree .ant-tree-node-content-wrapper { +.ant-tree-node-content-wrapper { padding-left: 0 !important; + display: inline-flex; +} + +.ant-tree-title { + display: contents; } .ant-tree-switcher.ant-tree-switcher-noop, @@ -179,11 +184,11 @@ body { } // editor -.b3-editor-button-filter { +.b3-editor-filter { width: 20px !important; height: 20px !important; } -.b3-editor-button-filter-selected { +.b3-editor-filter-selected { background-color: var(--b3-color-selected) !important; }