Skip to content

fix: add explicit width and height to Jenkins logo to improve CLS#579

Open
Eng-Omar-Hussein wants to merge 2 commits intojenkins-infra:mainfrom
Eng-Omar-Hussein:CLS
Open

fix: add explicit width and height to Jenkins logo to improve CLS#579
Eng-Omar-Hussein wants to merge 2 commits intojenkins-infra:mainfrom
Eng-Omar-Hussein:CLS

Conversation

@Eng-Omar-Hussein
Copy link
Copy Markdown

@Eng-Omar-Hussein Eng-Omar-Hussein commented Mar 22, 2026

Description

Added explicit width and height attributes to the Jenkins logo in the header component. This change ensures the browser allocates the correct space for the image before it loads, preventing the layout from "jumping" (Cumulative Layout Shift) once the asset is retrieved.

Fixes

Fixes #549

Screenshots (if applicable)

Checklist

  • PR title is clear and descriptive
  • Changes follow project conventions
  • No unrelated changes included
  • Documentation updated if needed

Additional Context

I also ensured the aspect ratio matches the source file to avoid any stretching.

@Eng-Omar-Hussein Eng-Omar-Hussein requested a review from a team as a code owner March 22, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

performance/UI bug (CLS)

1 participant