From fd8b98a55ed1cffb31b6fb6e826a197d3905f6e8 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Tue, 31 Dec 2019 15:16:24 +1100 Subject: [PATCH] FIX: don't display cloak on admin tool when the right wrench is clicked (#8641) --- .../discourse/widgets/topic-admin-menu.js.es6 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 index 56d06bb3c5a..d7f8fb97d82 100644 --- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 @@ -74,9 +74,8 @@ createWidget("topic-admin-menu-button", { this.state.expanded = false; this.state.position = null; - if (this.site.mobileView) { - $("#topic-progress-wrapper").css("z-index", ""); - $(".header-cloak").hide(); + if (this.site.mobileView && !this.attrs.rightSide) { + $(".header-cloak").css("display", ""); } }, @@ -104,9 +103,8 @@ createWidget("topic-admin-menu-button", { position.left += $button.width() - 203; } - if (this.site.mobileView) { - $("#topic-progress-wrapper").css("z-index", "auto"); - $(".header-cloak").show(); + if (this.site.mobileView && !this.attrs.rightSide) { + $(".header-cloak").css("display", "block"); } this.state.position = position;