FIX: don't display cloak on admin tool when the right wrench is clicked (#8641)

This commit is contained in:
Krzysztof Kotlarek 2019-12-31 15:16:24 +11:00 committed by GitHub
parent 412e1ebbe2
commit fd8b98a55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,9 +74,8 @@ createWidget("topic-admin-menu-button", {
this.state.expanded = false; this.state.expanded = false;
this.state.position = null; this.state.position = null;
if (this.site.mobileView) { if (this.site.mobileView && !this.attrs.rightSide) {
$("#topic-progress-wrapper").css("z-index", ""); $(".header-cloak").css("display", "");
$(".header-cloak").hide();
} }
}, },
@ -104,9 +103,8 @@ createWidget("topic-admin-menu-button", {
position.left += $button.width() - 203; position.left += $button.width() - 203;
} }
if (this.site.mobileView) { if (this.site.mobileView && !this.attrs.rightSide) {
$("#topic-progress-wrapper").css("z-index", "auto"); $(".header-cloak").css("display", "block");
$(".header-cloak").show();
} }
this.state.position = position; this.state.position = position;