• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • prism-api-plugin
    • None
    • Jenkins 2.395
      Prism API Plugin 1.29.0-3
      Warnings Next Generation Plugin 10.0.2
    • Core 2.403

      With all themes but one (Coy), the line numbers are not exactly aligned with the corresponding line of code. This misalignment gradually accumulates so it gets worse for longer files. See attached screenshots taken with the "Default" theme.

        1. end of file.png
          end of file.png
          52 kB
        2. misaligned.png
          misaligned.png
          115 kB
        3. warning location.png
          warning location.png
          79 kB

          [JENKINS-70805] Misaligned line numbers in source code view

          Ulli Hafner added a comment -

          Yes, I noticed that as well. Seems some interference with Jenkins typography. I‘m not a CSS expert though…

          Ulli Hafner added a comment - Yes, I noticed that as well. Seems some interference with Jenkins typography. I‘m not a CSS expert though…

          If I delete "!important" from font-family and line-height in style.less, then the problem is fixed. I don't know why the Coy theme is immune to this. Not a CSS expert either...

          Davide Pesavento added a comment - If I delete " !important " from font-family and line-height in style.less , then the problem is fixed. I don't know why the Coy theme is immune to this. Not a CSS expert either...

          Or, equivalently, add "!important" to the corresponding declarations in prism.css. This feels like an ugly workaround though. I wonder why Jenkins uses !important in its base stylesheet...

          Davide Pesavento added a comment - Or, equivalently, add " !important " to the corresponding declarations in prism.css . This feels like an ugly workaround though. I wonder why Jenkins uses !important in its base stylesheet...

            drulli Ulli Hafner
            pesa Davide Pesavento
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: