[JENKINS-70805] Misaligned line numbers in source code view · Issue #283 · jenkinsci/prism-api-plugin · GitHub
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert [JENKINS-70805] Misaligned line numbers in source code view #283 New issue Copy link New issue Copy link Closed Bug Closed [JENKINS-70805] Misaligned line numbers in source code view #283 Bug Copy link Description jenkins-infra-bot opened on Mar 15, 2023 Issue body actions 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. Originally reported by pesa , imported from: Misaligned line numbers in source code view assignee : drulli status : Closed priority : Minor component(s) : prism-api-plugin resolution : Fixed resolved : 2023-05-01T16:02:17+00:00 votes : 0 watchers : 2 imported : 20260107-220949 Raw content of original issue 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. environment Jenkins 2.395<br/> Prism API Plugin 1.29.0-3<br/> Warnings Next Generation Plugin 10.0.2 3 attachments end of file.png misaligned.png warning location.png Activity jenkins-infra-bot commented on Mar 15, 2023 jenkins-infra-bot on Mar 15, 2023 Author More actions Remote link associated with this issue: PR #7836 jenkins-infra-bot commented on Mar 15, 2023 jenkins-infra-bot on Mar 15, 2023 Author More actions drulli: Original comment link Raw content of original comment: Yes, I noticed that as well.
Seems some interference with Jenkins typography. I‘m not a CSS expert though… Yes, I noticed that as well. Seems some interference with Jenkins typography. I‘m not a CSS expert though… jenkins-infra-bot commented on Mar 15, 2023 jenkins-infra-bot on Mar 15, 2023 Author More actions pesa: Original comment link Raw content of original 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... 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... jenkins-infra-bot commented on Mar 15, 2023 jenkins-infra-bot on Mar 15, 2023 Author More actions pesa: Original comment link Raw content of original 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... 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... jenkins-infra-bot closed this as completed on May 1, 2023 jenkins-infra-bot added bug Bugs or performance problems Bugs or performance problems imported-jira-issue component:prism-api-plugin priority:minor resolution:fixed and removed bug Bugs or performance problems Bugs or performance problems on Jan 7, 2026 jenkins-infra-bot added the Bug issue type on Jan 7, 2026 Sign up for free to join this conversation on GitHub.
Already have an account? Sign in to comment Metadata Metadata Assignees No one assigned Labels No labels No labels Type Bug Projects No projects Milestone No milestone Relationships None yet Development No branches or pull requests Issue actions You can’t perform that action at this time.