@@ -507,7 +507,7 @@ class SoundEditor extends React.Component {
507
507
const pitchParts = pitchDiv . children ;
508
508
const volumeParts = volumeDiv . children ;
509
509
const menu = window . ScratchBlocks . customPrompt (
510
- "Modify Sound" , { width : 200 , height : 280 } ,
510
+ "Modify Sound" , { width : 200 , height : "auto" } ,
511
511
{
512
512
name : "Apply" , callback : ( ) => {
513
513
audio . close ( ) ;
@@ -522,7 +522,7 @@ class SoundEditor extends React.Component {
522
522
{ name : "Cancel" , callback : ( ) => audio . close ( ) } ,
523
523
) ;
524
524
525
- menu . style = "margin: 0 10px 0 10px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;" ;
525
+ menu . setAttribute ( " style" , "margin: 0 10px 15px 10px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;" ) ;
526
526
menu . append ( pitchDiv , volumeDiv ) ;
527
527
528
528
const previewButton = document . createElement ( "button" ) ;
@@ -618,7 +618,7 @@ class SoundEditor extends React.Component {
618
618
let selectedSampleRate = this . props . sampleRate ;
619
619
let selectedForceRate = false ;
620
620
const menu = window . ScratchBlocks . customPrompt (
621
- "Format Sound" , { width : 350 , height : 300 } ,
621
+ "Format Sound" , { width : 350 , height : "auto" } ,
622
622
{
623
623
name : "Apply" , callback : ( ) => {
624
624
const edits = { sampleRate : selectedSampleRate } ;
@@ -629,7 +629,7 @@ class SoundEditor extends React.Component {
629
629
{ name : "Cancel" , callback : ( ) => { } } ,
630
630
) ;
631
631
632
- menu . style = "padding: 10px 20px; " ;
632
+ menu . style . marginBottom = "15px " ;
633
633
const rateTitle = genTitle ( "New Sample Rate:" ) ;
634
634
635
635
const rateSelector = document . createElement ( "select" ) ;
0 commit comments