mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Change logo size (max-width=300px)
This commit is contained in:
@ -876,7 +876,7 @@ define([
|
|||||||
this.logo.addClass('hidden');
|
this.logo.addClass('hidden');
|
||||||
} else if (this.branding.logo.image || this.branding.logo.imageDark || this.branding.logo.imageLight) {
|
} else if (this.branding.logo.image || this.branding.logo.imageDark || this.branding.logo.imageLight) {
|
||||||
_logoImage = logo.image;
|
_logoImage = logo.image;
|
||||||
this.logo.html('<img src="' + _logoImage + '" style="max-width:100px; max-height:20px; margin: 0;"/>');
|
this.logo.html('<img src="' + _logoImage + '" style="max-width:300px; max-height:20px; margin: 0;"/>');
|
||||||
this.logo.css({'background-image': 'none', width: 'auto'});
|
this.logo.css({'background-image': 'none', width: 'auto'});
|
||||||
(this.branding.logo.url || this.branding.logo.url===undefined) && this.logo.addClass('link');
|
(this.branding.logo.url || this.branding.logo.url===undefined) && this.logo.addClass('link');
|
||||||
}
|
}
|
||||||
@ -1111,7 +1111,7 @@ define([
|
|||||||
element.addClass('hidden');
|
element.addClass('hidden');
|
||||||
} else if (value.logo.image || value.logo.imageDark || value.logo.imageLight) {
|
} else if (value.logo.image || value.logo.imageDark || value.logo.imageLight) {
|
||||||
_logoImage = logo.image;
|
_logoImage = logo.image;
|
||||||
element.html('<img src="' + _logoImage + '" style="max-width:100px; max-height:20px; margin: 0;"/>');
|
element.html('<img src="' + _logoImage + '" style="max-width:300px; max-height:20px; margin: 0;"/>');
|
||||||
element.css({'background-image': 'none', width: 'auto'});
|
element.css({'background-image': 'none', width: 'auto'});
|
||||||
(value.logo.url || value.logo.url===undefined) && element.addClass('link');
|
(value.logo.url || value.logo.url===undefined) && element.addClass('link');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -165,7 +165,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#header-logo {
|
#header-logo {
|
||||||
max-width: 200px;
|
//max-width: 200px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 6px 24px 6px 12px;
|
padding: 6px 24px 6px 12px;
|
||||||
.rtl & {
|
.rtl & {
|
||||||
|
|||||||
@ -989,7 +989,7 @@ DE.ApplicationController = new(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value.logo.image || value.logo.imageEmbedded) {
|
if (value.logo.image || value.logo.imageEmbedded) {
|
||||||
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:100px; max-height:20px;"/>');
|
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:300px; max-height:20px;"/>');
|
||||||
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
||||||
|
|
||||||
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
||||||
|
|||||||
@ -899,7 +899,7 @@ define([
|
|||||||
if (value.logo.image || value.logo.imageDark || value.logo.imageLight) {
|
if (value.logo.image || value.logo.imageDark || value.logo.imageLight) {
|
||||||
_logoImage = Common.UI.Themes.isDarkTheme() ? (value.logo.imageDark || value.logo.image || value.logo.imageLight) :
|
_logoImage = Common.UI.Themes.isDarkTheme() ? (value.logo.imageDark || value.logo.image || value.logo.imageLight) :
|
||||||
(value.logo.imageLight || value.logo.image || value.logo.imageDark);
|
(value.logo.imageLight || value.logo.image || value.logo.imageDark);
|
||||||
logo.html('<img src="' + _logoImage + '" style="max-width:100px; max-height:20px;"/>');
|
logo.html('<img src="' + _logoImage + '" style="max-width:300px; max-height:20px;"/>');
|
||||||
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -829,7 +829,7 @@ PE.ApplicationController = new(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value.logo.image || value.logo.imageEmbedded) {
|
if (value.logo.image || value.logo.imageEmbedded) {
|
||||||
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:100px; max-height:20px;"/>');
|
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:300px; max-height:20px;"/>');
|
||||||
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
||||||
|
|
||||||
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
||||||
|
|||||||
@ -922,7 +922,7 @@ SSE.ApplicationController = new(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value.logo.image || value.logo.imageEmbedded) {
|
if (value.logo.image || value.logo.imageEmbedded) {
|
||||||
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:100px; max-height:20px;"/>');
|
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:300px; max-height:20px;"/>');
|
||||||
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
||||||
|
|
||||||
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
||||||
|
|||||||
@ -872,7 +872,7 @@ VE.ApplicationController = new(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value.logo.image || value.logo.imageEmbedded) {
|
if (value.logo.image || value.logo.imageEmbedded) {
|
||||||
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:100px; max-height:20px;"/>');
|
logo.html('<img src="'+(value.logo.image || value.logo.imageEmbedded)+'" style="max-width:300px; max-height:20px;"/>');
|
||||||
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
logo.css({'background-image': 'none', width: 'auto', height: 'auto'});
|
||||||
|
|
||||||
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
value.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead.");
|
||||||
|
|||||||
Reference in New Issue
Block a user