UX: Do not show bootstrap mode button on mobile (#20984)

It took too much place in the header.
This commit is contained in:
Bianca Nenciu 2023-04-05 21:50:27 +03:00 committed by GitHub
parent 65f35e1ef2
commit e1a5f36d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ createWidget("header-contents", {
tagName: "div.contents.clearfix",
transform() {
return {
staff: this.get("currentUser.staff"),
showBootstrapMode: this.currentUser?.staff && this.site.desktopView,
};
},
template: hbs`
@ -20,7 +20,7 @@ createWidget("header-contents", {
{{#if attrs.topic}}
{{header-topic-info attrs=attrs}}
{{else if this.siteSettings.bootstrap_mode_enabled}}
{{#if transformed.staff}}
{{#if transformed.showBootstrapMode}}
{{header-bootstrap-mode attrs=attrs}}
{{/if}}
{{/if}}