mirror of
https://github.com/NetEase/tango.git
synced 2026-09-03 06:33:51 +08:00
fix: show right panel when design view select node & optimize editor css (#193)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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)',
|
||||
}
|
||||
: {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user