fix: show right panel when design view select node & optimize editor css (#193)

This commit is contained in:
BoBoooooo
2024-08-05 11:45:41 +08:00
committed by GitHub
parent a1eea02f94
commit b83d965955
2 changed files with 3 additions and 0 deletions

View File

@@ -137,6 +137,8 @@ export function useDnd({
const data = sandboxQuery.getDraggableParentsData(e.target as HTMLElement, true);
if (data && data.id) {
selectSource.select(data);
// 画布选中节点时,自动唤起 right-panel
designer.toggleRightPanel(true);
}
};

View File

@@ -81,6 +81,7 @@ export const CodeEditor = observer((props: CodeEditorProps) => {
designer.activeView === 'dual'
? {
borderLeft: 'solid 1px var(--tango-colors-line2)',
borderRight: 'solid 1px var(--tango-colors-line2)',
}
: {};