redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Change height of x-logo in yaml

Open SrikrishnaCodeNebula opened this issue 1 year ago • 5 comments
trafficstars

I have added url of x-logo in yaml file. But want to change height and width of the x-logo and I have tried introducing maxHeight and minHeight properties but it is not working.

SrikrishnaCodeNebula avatar Jul 03 '24 09:07 SrikrishnaCodeNebula

Hi @SrikrishnaCodeNebula you can find the documentation for the x-logo feature here: https://redocly.com/docs/redoc/redoc-vendor-extensions#x-logo

The page includes information about the supported options.

lornajane avatar Jul 03 '24 10:07 lornajane

Hi @lornajane But it does not have any options for height and width as well. It has options to add url, backgroundcolor, href etc. Can you please let me know how to add height and width to x-logo?

SrikrishnaCodeNebula avatar Jul 03 '24 12:07 SrikrishnaCodeNebula

We don't have configurable options for resizing the image in the docs page, could you try resizing it before you use it as the logo?

lornajane avatar Jul 03 '24 12:07 lornajane

@lornajane you mean to reduce the width and height of the image beforehand and then using it in x-logo url?

SrikrishnaCodeNebula avatar Jul 03 '24 12:07 SrikrishnaCodeNebula

@SrikrishnaCodeNebula Yes that's what she meant. Use something like Photoshop or illustrator to change dimensions of the image and then use it in the url.

SoloMugen avatar Sep 28 '24 10:09 SoloMugen

Please use the prepared image for x-logo. It should work. If you have additional questions please reopen the issue

AlexVarchuk avatar Mar 21 '25 15:03 AlexVarchuk