Skip to content

Commit

Permalink
style(outline-pane): fix outline-pane styles
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored and JackLian committed Sep 5, 2023
1 parent 4677d99 commit 70df59a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/editor-skeleton/src/layouts/right-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,23 @@ export default class RightArea extends Component<{ area: Area<any, Panel> }> {
}
}


@observer
class Contents extends Component<{ area: Area<any, Panel> }> {
render() {
const { area } = this.props;

return (
<Fragment>
{area.container.items.map((item) => item.content)}
{
area.container.items
.slice()
.sort((a, b) => {
const index1 = a.config?.index || 0;
const index2 = b.config?.index || 0;
return index1 === index2 ? 0 : (index1 > index2 ? 1 : -1);
})
.map((item) => item.content)
}
</Fragment>
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/editor-skeleton/src/layouts/workbench.less
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ body {
background-color: var(--color-right-area-background, var(--color-pane-background, #fff));
left: 0;
top: 0;
z-index: 1;
}
&.lc-area-visible {
display: block;
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-outline-pane/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
paneName: BackupPaneName,
treeMaster,
},
index: 1,
});

// 处理 master pane 和 backup pane 切换
Expand Down

0 comments on commit 70df59a

Please sign in to comment.