mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 06:54:06 -04:00
If mobile view, don't switch to small logo in the header when scrolled down in a topic
This commit is contained in:
parent
07e6956917
commit
dc1efd6c78
1 changed files with 1 additions and 2 deletions
|
@ -91,7 +91,6 @@ Discourse.HeaderView = Discourse.View.extend({
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Display the correct logo in the header, showing a custom small icon if it exists.
|
Display the correct logo in the header, showing a custom small icon if it exists.
|
||||||
In case the logo_url setting is empty, shows the site title as the logo.
|
In case the logo_url setting is empty, shows the site title as the logo.
|
||||||
|
@ -99,7 +98,7 @@ Discourse.HeaderView = Discourse.View.extend({
|
||||||
**/
|
**/
|
||||||
logoHTML: function() {
|
logoHTML: function() {
|
||||||
var result = "<div class='title'><a href='" + Discourse.getURL("/") + "'>";
|
var result = "<div class='title'><a href='" + Discourse.getURL("/") + "'>";
|
||||||
if (this.get('controller.showExtraInfo')) {
|
if (!Discourse.Session.currentProp('mobileView') && this.get('controller.showExtraInfo')) {
|
||||||
var logoSmall = Discourse.SiteSettings.logo_small_url;
|
var logoSmall = Discourse.SiteSettings.logo_small_url;
|
||||||
if (logoSmall && logoSmall.length > 1) {
|
if (logoSmall && logoSmall.length > 1) {
|
||||||
result += "<img class='logo-small' src='" + logoSmall + "' width='33' height='33'>";
|
result += "<img class='logo-small' src='" + logoSmall + "' width='33' height='33'>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue