Skip to content

svg logo to resized #6218

@Calteo

Description

@Calteo

Operating System: Windows

DocFX Version Used: 2.48.1.0

Template used: default

Steps to Reproduce:

  1. Added a custom svg file for a logo under images
  2. added corresponding globalMetadata / _appLogoPath
  3. ran docfx

Expected Behavior: the custom logo is displaye at correct scale (height = 50?)

Actual Behavior: the custom logo is show in its designed size (height = 150)

This is true for all current browsers (Chrome, Firefox, Edge). The svg tag sets the with and height to 150. It should be "auto" and a attribute viewBox='0 0 150 150' should be added. Then the logo is displayed correctly.

BadLogo

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedYou could start with this if you want to contribute to the projecttemplateThe stock site template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions