Support uploading custom logos with non-standard width

Issue #5 open
Kevin Raney created an issue

I'd like to upload a wider logo like the attached (but with Stash branding) but it seems to shrink the height of the image to fit the width of the original image. Is there something I can do to make the logo image flexible width? Or am I doing something wrong. I reverted back to the default stash logo, but I can put my proposed wider image back and provide a url if you'd like to see what I'm talking about.

Comments (9)

  1. Jonathan Poh Account Deactivated

    Hi Kevin,

    I'm one of the developers that worked on the plugin, and had a look at this issue recently. The way this plugin works is that it overrides and replaces the default Stash logo in the header, which is in turn a background-image. It's a bit tricky to support a dynamic width logo as the custom logo upload-and-crop dialog would need to be changed to support cropping to an arbitrary size/shape, and the logo itself on the header would need to figure out the final width of the uploaded+cropped logo and set the size correctly.

    Unfortunately, I've been unable to insert the uploaded logo as an <img> tag into the header and let the <span> tag resize to fit automatically because of limitations on what a plugin can inject into the Stash core templates. It is currently just converted into a base64-encoded image and overriding the default logo using CSS.

    I understand this limitation is frustrating to you, but I will continue to look into how we can fix this and allow for any sized header logos.

  2. Kevin Raney reporter

    Thanks Jonathan, Hopefully Stash will soon get similar "Look and Feel" options like Jira has.

  3. Log in to comment