Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33191

Credentials icon using wrong size and class name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • credentials-plugin

      The HTML for the credentials configuration link displayed in the sidebar is using the wrong image size - all the rest of the icons are 24x24, but credentials is using 48x48 and the wrong class name (plus multiple size attributes that contradict each other).

      <img src="/static/1b3f74d9/plugin/credentials/images/48x48/credentials.png" style="width: 48px; height: 48px; width: 24px; height: 24px; margin: 2px;" class="icon-credentials-credentials icon-xlg">

      In the above HTML, the source image is 48x48, the class name is icon-xlg, and there are two sets if width and height attributes, one for the correct 24px and one for 48px

      For reference, I included the img tag for the Manage link

      <img src="/static/1b3f74d9/images/24x24/setting.png" style="width: 24px; height: 24px; width: 24px; height: 24px; margin: 2px;" class="icon-setting icon-md">

      For whatever odd reason this to duplicates the width and height attributes, but the source image and all attributes are correctly 24px and the class is icon-md

      Now this actually looks fine in the default Jenkins view, however when using third party themes (in my case the Jenkins Material Theme) it causes a double size credentials icon.

      menu.png

        1. menu.png
          menu.png
          6 kB
        2. menu2.png
          menu2.png
          52 kB

            stephenconnolly Stephen Connolly
            richardmoss Richard Moss
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: