Skip to content

Commit

Permalink
Revert "Zoom Buttons in Mobile Discord"
Browse files Browse the repository at this point in the history
This reverts commit b7090da.
  • Loading branch information
choptop84 committed Feb 4, 2024
1 parent b7090da commit 4d6004a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions editor/SongEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,8 @@ export class SongEditor {
this._patternEditor.container.style.flexShrink = "";
this._patternEditorPrev.container.style.display = "none";
this._patternEditorNext.container.style.display = "none";
this._zoomInButton.style.display = "none";
this._zoomOutButton.style.display = "none";
this._undoButton.style.display = (this._doc.channel < this._doc.song.pitchChannelCount) ? "" : "none";
this._redoButton.style.display = (this._doc.channel < this._doc.song.pitchChannelCount) ? "" : "none";
this._copyPatternButton.style.display = (this._doc.channel < this._doc.song.pitchChannelCount) ? "" : "none";
Expand Down Expand Up @@ -2309,10 +2311,6 @@ export class SongEditor {
this._loopBarButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._fullscreenButton.style.top = prefs.showScrollBar ? "330px" : "330px";
this._fullscreenButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._zoomInButton.style.top = prefs.showScrollBar ? "360px" : "360px";
this._zoomInButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._zoomOutButton.style.top = prefs.showScrollBar ? "390px" : "390px";
this._zoomOutButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._patternArea.style.paddingLeft = prefs.showScrollBar ? "32px" : "32px" ;
this._patternArea.style.maxHeight = "75vh";
this._patternArea.style.height = "481px";
Expand Down
6 changes: 2 additions & 4 deletions website/beepbox_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -43928,6 +43928,8 @@ You should be redirected to the song at:<br /><br />
this._patternEditor.container.style.flexShrink = "";
this._patternEditorPrev.container.style.display = "none";
this._patternEditorNext.container.style.display = "none";
this._zoomInButton.style.display = "none";
this._zoomOutButton.style.display = "none";
this._undoButton.style.display = (this._doc.channel < this._doc.song.pitchChannelCount) ? "" : "none";
this._redoButton.style.display = (this._doc.channel < this._doc.song.pitchChannelCount) ? "" : "none";
this._copyPatternButton.style.display = (this._doc.channel < this._doc.song.pitchChannelCount) ? "" : "none";
Expand Down Expand Up @@ -43963,10 +43965,6 @@ You should be redirected to the song at:<br /><br />
this._loopBarButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._fullscreenButton.style.top = prefs.showScrollBar ? "330px" : "330px";
this._fullscreenButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._zoomInButton.style.top = prefs.showScrollBar ? "360px" : "360px";
this._zoomInButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._zoomOutButton.style.top = prefs.showScrollBar ? "390px" : "390px";
this._zoomOutButton.style.left = prefs.showScrollBar ? "2px" : "2px";
this._patternArea.style.paddingLeft = prefs.showScrollBar ? "32px" : "32px";
this._patternArea.style.maxHeight = "75vh";
this._patternArea.style.height = "481px";
Expand Down
2 changes: 1 addition & 1 deletion website/beepbox_editor.min.js

Large diffs are not rendered by default.

0 comments on commit 4d6004a

Please sign in to comment.