fix(plugin-resource-manager): CB-2058 move placeholder

This commit is contained in:
Naumov Alexey
2022-05-24 12:47:08 +02:00
parent 8116f89673
commit 0ef399496a
@@ -37,12 +37,17 @@ const styles = css`
width: 100%;
min-width: 240px;
}
div {
center {
height: 100%;
width: 100%;
display: flex;
}
message {
padding: 24px;
box-sizing: border-box;
max-width: 240px;
padding: 24px;
margin: auto;
text-align: center;
margin: auto;
}
`;
@@ -62,9 +67,11 @@ export const ResourceManagerTree = observer(function ResourceManagerTree() {
loadChildren={navTreeService.loadNestedNodes}
control={NavigationNodeControl}
emptyPlaceholder={() => styled(styles)(
<div>
{translate('plugin_resource_manager_no_resources_placeholder')}
</div>
<center>
<message>
{translate('plugin_resource_manager_no_resources_placeholder')}
</message>
</center>
)}
onOpen={node => navTreeService.navToNode(node.id, node.parentId)}
/>