Skip to content

Commit

Permalink
Improve placement of model in curve3D render tab (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayomaki authored Sep 4, 2023
1 parent 813a8ee commit e337c4a
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions src/tabs/Curve/3Dcurve_anim_canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,35 @@ State
<div
style={{
display: 'flex',
flexDirection: 'column',
alignContent: 'center',
justifyContent: 'center',
}}
>
<div
style={{
display: 'flex',
marginTop: '10px',
padding: '10px',
flexDirection: 'row',
justifyContent: 'stretch',
alignContent: 'center',
}}
>
{buttons}
{sliders}
<Switch
style={{
marginLeft: '20px',
marginRight: '20px',
marginTop: '10px',
whiteSpace: 'nowrap',
}}
label="Auto Play"
onChange={this.autoPlaySwitchChanged}
checked={this.state.autoPlay}
/>
</div>
<WebGLCanvas
style={{
flexGrow: 1,
Expand All @@ -319,30 +344,6 @@ State
}}
/>
</div>
<div
style={{
display: 'flex',
marginTop: '10px',
padding: '10px',
flexDirection: 'row',
justifyContent: 'stretch',
alignContent: 'center',
}}
>
{buttons}
{sliders}
<Switch
style={{
marginLeft: '20px',
marginRight: '20px',
marginTop: '10px',
whiteSpace: 'nowrap',
}}
label="Auto Play"
onChange={this.autoPlaySwitchChanged}
checked={this.state.autoPlay}
/>
</div>
</>
);
}
Expand Down

0 comments on commit e337c4a

Please sign in to comment.