nibb

Well-Known Member
Mar 22, 2008
321
5
68
It seems cPanel now supports vectors for icons and logo branding. Great !

But there seems to be a bug with the logo uploaded on the branding section. Suggested size is 250x50 and that is fine if you use PNG. But if you use SVG the logo displays tiny. Extremely small. It does not resize correctly to 250x50 even if your SVG is in that format. If you export the same logo back to PNG it shows fine in the header but with a vector format, it doesn't.

I suspect this is related CSS it's resizing the logo with the responsive setting is shrinking it incorrectly. It just looks back.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @nibb,

Could you verify if you are using the Retro style for Paper Lantern? We have a case open (CPANEL-13671) with a similar report, but only affecting the Retro style.

Thank you.
 

nibb

Well-Known Member
Mar 22, 2008
321
5
68
Nope. Not using the retro style but default. Seems to affect all of them equally. Instead of using the whole wide in the header like the PNG does, the SVG gets shrunk 4 or 5 times its size. It's a CSS responsive issue because I had that issue before on bootstrap sites with vector images. The solution was to give the vector file a fixed wide in the HTMl code.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @nibb,

I've opened internal case CPANEL-13945 to report this issue. I'll monitor the status of this case and update this thread with more information as it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

To update, this is fixed as part of cPanel version 68:

Fixed case CPANEL-13945: Fixed issue with logo resizing in cPanel.

Thank you.
 

IWD

Member
Apr 6, 2012
7
0
51
cPanel Access Level
Root Administrator
@cPanelAdamF - I'd like to inquire what was the logic behind the 30px height for the .svg logo's? Opposed to a 50px max-height for .png logo's. Seems like a bug? Its disappointing that I need to create a custom theme just to get my cleaner svg logo to be a presentable size. Has there been any talk or maybe you guys can take another stab at making the svg file type the same size as the png logo in your default css?