Client: PortalSettings: WhiteLabel: fix
This commit is contained in:
parent
0672cd9e38
commit
7ab2d622cb
@ -15,7 +15,7 @@ export const generateLogo = (
|
||||
ctx.textAlign = "start";
|
||||
ctx.textBaseline = "top";
|
||||
ctx.font = `${fontSize}px Arial`;
|
||||
ctx.fillText(text, 0, 0);
|
||||
ctx.fillText(text, 0, height / 2 - fontSize / 2);
|
||||
|
||||
return canvas.toDataURL();
|
||||
};
|
||||
@ -25,7 +25,7 @@ export const getLogoOptions = (index, text) => {
|
||||
case 0:
|
||||
return { fontSize: 18, text: text };
|
||||
case 1:
|
||||
return { fontSize: 30, text: text };
|
||||
return { fontSize: 44, text: text };
|
||||
case 2:
|
||||
return { fontSize: 16, text: text.trim().charAt(0) };
|
||||
case 3:
|
||||
@ -35,7 +35,7 @@ export const getLogoOptions = (index, text) => {
|
||||
case 5:
|
||||
return { fontSize: 30, text: text.trim().charAt(0) };
|
||||
case 6:
|
||||
return { fontSize: 30, text: text };
|
||||
return { fontSize: 32, text: text };
|
||||
default:
|
||||
return { fontSize: 18, text: text };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user