UX: Do not show bootstrap mode button on mobile (#20984)
It took too much place in the header.
This commit is contained in:
parent
65f35e1ef2
commit
e1a5f36d52
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue