Feat: create - support simulated Android device preview

This commit is contained in:
2024-03-22 17:40:48 +08:00
parent 4f1b515c9e
commit 1667b404ff
2 changed files with 2 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
.preview {
display: flex;
position: relative;
justify-content: center;
align-items: center;

View File

@@ -379,6 +379,7 @@ const Create = () => {
<Playground.Output.Preview.Render
iframeKey={previewTemplate}
compiledCode={compiledCode}
mobileMode={formValues.platform === 'ANDROID'}
/>
) : (
<span className={'no-preview'}></span>