fix: shrink canvas

This commit is contained in:
TrèsAbhi committed 2024-02-22 12:23:56 -06:00
1 parent c68df74943
commit ffeaba6a18
1 file changed
+5 -1
@@ -172,8 +172,11 @@ export function TankSandbox() {
</Tabs.List> </Tabs.List>
</Tabs.Root> </Tabs.Root>
<div style={{ height: '100%' }}> <div
style={{ height: '100%', position: 'absolute', width: '100%' }}
>
{loadModel ? ( {loadModel ? (
<div style={{ width: '100%', height: '100%' }}>
<Canvas <Canvas
shadows shadows
ref={canvas} ref={canvas}
@@ -197,6 +200,7 @@ export function TankSandbox() {
<SpacedArmorDepth ornamental /> <SpacedArmorDepth ornamental />
</Suspense> </Suspense>
</Canvas> </Canvas>
</div>
) : ( ) : (
<Flex <Flex
align="center" align="center"