summaryrefslogtreecommitdiff
path: root/client/js/controls
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/controls')
-rw-r--r--client/js/controls/post_content_control.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/client/js/controls/post_content_control.js b/client/js/controls/post_content_control.js
index ed5e9a4..0023854 100644
--- a/client/js/controls/post_content_control.js
+++ b/client/js/controls/post_content_control.js
@@ -115,30 +115,6 @@ class PostContentControl {
}
_refreshSize() {
- if (window.innerWidth <= 800) {
- const buttons = document.querySelector(".sidebar > .buttons");
- if (buttons) {
- const content = document.querySelector(".content");
- content.insertBefore(buttons, content.querySelector(".post-container + *"));
-
- const afterControls = document.querySelector(".content > .after-mobile-controls");
- if (afterControls) {
- afterControls.parentElement.parentElement.appendChild(afterControls);
- }
- }
- } else {
- const buttons = document.querySelector(".content > .buttons");
- if (buttons) {
- const sidebar = document.querySelector(".sidebar");
- sidebar.insertBefore(buttons, sidebar.firstElementChild);
- }
-
- const afterControls = document.querySelector(".content + .after-mobile-controls");
- if (afterControls) {
- document.querySelector(".content").appendChild(afterControls);
- }
- }
-
this._currentFitFunction();
}