Skip to content

Commit 36a7260

Browse files
authored
one one more style change before bed
1 parent 7585aed commit 36a7260

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/containers/sound-editor.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ class SoundEditor extends React.Component {
507507
const pitchParts = pitchDiv.children;
508508
const volumeParts = volumeDiv.children;
509509
let menu = window.ScratchBlocks.customPrompt(
510-
"Modify Sound", { width: 200, height: "auto" },
510+
"Modify Sound", { width: 230, height: "auto" },
511511
{
512512
name: "Apply", callback: () => {
513513
audio.close();
@@ -523,11 +523,11 @@ class SoundEditor extends React.Component {
523523
);
524524

525525
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;");
527527
menu.append(pitchDiv, volumeDiv);
528528

529529
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;";
531531
previewButton.innerHTML = `<img draggable="false" style="max-width: 100%;max-height: 100%" src="${playURI}">`;
532532
menu.append(previewButton);
533533

@@ -592,7 +592,7 @@ class SoundEditor extends React.Component {
592592
if (menu) modalHandler();
593593
else queueMicrotask(() => {
594594
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";
596596
modalHandler();
597597
});
598598
}

0 commit comments

Comments
 (0)