@@ -507,7 +507,7 @@ class SoundEditor extends React.Component {
507
507
const pitchParts = pitchDiv . children ;
508
508
const volumeParts = volumeDiv . children ;
509
509
let menu = window . ScratchBlocks . customPrompt (
510
- "Modify Sound" , { width : 200 , height : "auto" } ,
510
+ "Modify Sound" , { width : 230 , height : "auto" } ,
511
511
{
512
512
name : "Apply" , callback : ( ) => {
513
513
audio . close ( ) ;
@@ -523,11 +523,11 @@ class SoundEditor extends React.Component {
523
523
) ;
524
524
525
525
const modalHandler = ( ) => {
526
- 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
+ menu . setAttribute ( "style" , "margin-bottom: 15px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;" ) ;
527
527
menu . append ( pitchDiv , volumeDiv ) ;
528
528
529
529
const previewButton = document . createElement ( "button" ) ;
530
- previewButton . style = "border-radius: 1000px;padding: 5px;width: 45px;height: 45px;margin-right: 10px; border-style: none;background: #00c3ff;" ;
530
+ previewButton . style = "border-radius: 1000px;padding: 5px;width: 45px;height: 45px;border-style: none;background: #00c3ff;" ;
531
531
previewButton . innerHTML = `<img draggable="false" style="max-width: 100%;max-height: 100%" src="${ playURI } ">` ;
532
532
menu . append ( previewButton ) ;
533
533
@@ -592,7 +592,7 @@ class SoundEditor extends React.Component {
592
592
if ( menu ) modalHandler ( ) ;
593
593
else queueMicrotask ( ( ) => {
594
594
menu = document . querySelector ( `div[class="ReactModalPortal"] div[class*="prompt_body_"] div` ) ;
595
- menu . parentNode . parentNode . parentNode . style . width = "200px " ;
595
+ menu . parentNode . parentNode . parentNode . style . width = "230px " ;
596
596
modalHandler ( ) ;
597
597
} ) ;
598
598
}
0 commit comments