Skip to content

Fix deprecation warning icon vertical alignment in versions table - #10873

Open
Nigusu-Allehu with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-deprecation-warning-alignment
Open

Fix deprecation warning icon vertical alignment in versions table#10873
Nigusu-Allehu with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-deprecation-warning-alignment

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The deprecation/vulnerability warning icon in the package versions table was rendering below the status text ("Listed"/"Unlisted") rather than vertically centered on the same row.

Root cause: .package-icon-cell inside .package-details-main had display: flex applied to <td> elements. Flex on table cells overrides normal table-cell layout, causing inconsistent vertical positioning of the icon relative to adjacent cell content.

Fix:

  • Remove display: flex; justify-content: center from .package-icon-cell in page-display-package.less
  • Replace with vertical-align: middle — matches the pattern already used in page-manage-packages.less where this issue never appeared
  • Rebuild bootstrap.min.css from LESS sources

Remove display:flex and justify-content:center from .package-icon-cell
in page-display-package.less to fix the misalignment between the
deprecation warning icon and the listing status column.

The display:flex on td elements caused inconsistent vertical positioning
of the warning icon relative to adjacent table cells. Replacing with
vertical-align:middle aligns the icon to the center of its row, matching
the expected behavior seen in the manage-packages table.

Closes #10860
Copilot AI changed the title [WIP] Fix misalignment of deprecation warning on listing column Fix deprecation warning icon vertical alignment in versions table Jun 18, 2026
Copilot AI requested a review from Nigusu-Allehu June 18, 2026 17:42
Comment thread src/NuGetGallery/Content/gallery/css/bootstrap.min.css
Copilot AI requested a review from Nigusu-Allehu June 18, 2026 18:18
@Nigusu-Allehu
Nigusu-Allehu marked this pull request as ready for review June 18, 2026 18:19
@Nigusu-Allehu
Nigusu-Allehu requested a review from a team as a code owner June 18, 2026 18:19
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.

3 participants