mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-app): nav tree loading styles
This commit is contained in:
@@ -27,6 +27,7 @@ const styles = css`
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
min-width: 240px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -61,7 +62,11 @@ export const ElementsTree: React.FC<Props> = observer(function ElementsTree({
|
||||
|
||||
if (!nodeChildren.children || nodeChildren.children.length === 0) {
|
||||
if (nodeChildren.isLoading()) {
|
||||
return styled(styles)(<center as="div"><Loader /></center>);
|
||||
return styled(styles)(
|
||||
<center as="div">
|
||||
<Loader />
|
||||
</center>
|
||||
);
|
||||
}
|
||||
|
||||
return <Placeholder />;
|
||||
|
||||
Reference in New Issue
Block a user