summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2025-02-15 18:13:22 +0000
committerHunternif <hunternif@gmail.com>2025-02-15 21:20:11 +0000
commit5717ab9cd18ff370edcd66dab721a6cdb7353173 (patch)
treea27fb4baa78a0ee6005e7077aaf7b3882cd0a9c7 /client
parent6a5300502df8b4de9c8f269b444cd309f02b28ad (diff)
client: remove mobile changes from #641
Diffstat (limited to 'client')
-rw-r--r--client/css/post-main-view.styl5
-rw-r--r--client/js/controls/post_content_control.js24
2 files changed, 0 insertions, 29 deletions
diff --git a/client/css/post-main-view.styl b/client/css/post-main-view.styl
index 0ff29ec..00f502f 100644
--- a/client/css/post-main-view.styl
+++ b/client/css/post-main-view.styl
@@ -53,9 +53,6 @@
.post-content
margin: 0
- .after-mobile-controls
- width: 100%
-
.darktheme .post-view
>.sidebar, >.content
nav.buttons
@@ -67,8 +64,6 @@
@media (max-width: 800px)
.post-view
flex-wrap: wrap
- >.after-mobile-controls
- order: 3
>.sidebar
order: 2
min-width: 100%
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();
}