Skip to content

Commit

Permalink
fix: show right panel when design view select node & optimize editor …
Browse files Browse the repository at this point in the history
…css (#193)
  • Loading branch information
BoBoooooo authored Aug 5, 2024
1 parent a1eea02 commit b83d965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/designer/src/dnd/use-dnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down
1 change: 1 addition & 0 deletions packages/designer/src/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
}
: {};

Expand Down

0 comments on commit b83d965

Please sign in to comment.