Skip to content

Commit 0b13ea1

Browse files
authored
sound-editor.jsx -- modify btn style changes
1 parent b2817e4 commit 0b13ea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/sound-editor.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ class SoundEditor extends React.Component {
526526
menu.textarea.append(pitchDiv, volumeDiv);
527527

528528
const previewButton = document.createElement("button");
529-
previewButton.style = "border-radius: 100%;padding: 5px;width: 46px;margin-right: 28px;height: 46px;border-style: none;background: #00c3ff;";
529+
previewButton.style = "border-radius: 1000px;padding: 5px;width: 45px;height: 45px;margin-right: 10px;border-style: none;background: #00c3ff;";
530530
previewButton.innerHTML = `<img draggable="false" style="max-width: 100%;max-height: 100%" src="${playURI}">`;
531531
menu.textarea.append(previewButton);
532532

@@ -541,7 +541,7 @@ class SoundEditor extends React.Component {
541541
bufferSource.connect(gainNode);
542542
bufferSource.buffer = properBuffer;
543543
bufferSource.start(0);
544-
bufferSource.detune.value = pitch.value * 10;
544+
bufferSource.detune.value = pitchParts[1].value * 10;
545545
previewButton.innerHTML = `<img draggable="false" style="max-width: 100%;max-height: 100%" src="${stopURI}">`;
546546
audioPlaying = true;
547547
bufferSource.onended = () => {

0 commit comments

Comments
 (0)