mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
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
Block a user