mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
fix: shrink canvas
This commit is contained in:
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"
|
||||||
|
|||||||
Reference in new issue
Block a user