mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
FIX: Support optional logos when previewing the wizard
This commit is contained in:
parent
2ddabc3928
commit
aa80c8cbdd
@ -126,8 +126,11 @@ export function createPreviewComponent(width, height, obj) {
|
||||
// Logo
|
||||
const headerMargin = headerHeight * 0.2;
|
||||
const logoHeight = headerHeight - (headerMargin * 2);
|
||||
|
||||
if (this.logo) {
|
||||
const logoWidth = (logoHeight / this.logo.height) * this.logo.width;
|
||||
this.scaleImage(this.logo, headerMargin, headerMargin, logoWidth, logoHeight);
|
||||
}
|
||||
|
||||
// Top right menu
|
||||
this.scaleImage(this.avatar, width - avatarSize - headerMargin, headerMargin, avatarSize, avatarSize);
|
||||
|
Loading…
Reference in New Issue
Block a user