style: add padding to component placeholder box

This commit is contained in:
MrWindlike 2022-05-19 16:53:59 +08:00
parent 8a68726348
commit 791ed09c2c

View File

@ -103,7 +103,9 @@ export const StructureTree: React.FC<Props> = props => {
</AutoComplete>
</VStack>
<Box width="full" flex={1} minHeight={0} overflowY="auto" overflowX="hidden">
{componentEles.length > 0 ? componentEles : <Placeholder services={services} />}
{componentEles.length > 0 ? componentEles : (<Box padding="4">
<Placeholder services={services} />
</Box>)}
</Box>
</VStack>
);