Making WordPress.org

Opened 9 months ago

Closed 7 months ago

#7919 closed defect (bug) (fixed)

Pull Requests (0) Section Formatting Issue on Meta Trac

Reported by: truptikanzariya's profile truptikanzariya Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Trac Keywords: needs-testing has-screenshots has-patch
Cc:

Description

The "Pull Requests (0)" section on the Meta Trac ticket page is not displaying properly. The formatting appears misaligned or unclear, making it difficult to distinguish elements. The section should be structured more clearly to improve usability.

Steps to Reproduce

  1. Go to the WordPress Meta Trac ticket page.
  2. Scroll down to the Pull Requests (0) section.
  3. Observe that the text and layout are not properly formatted.

Improved CSS for Better Formatting

Your current CSS is applying styles to the last <div> inside <li>, ensuring it has white-space: nowrap; and padding-right: 0;. However, if the formatting is still not correct, you might need additional adjustments.

Try the following CSS improvements:

#github-prs ul.pull-requests li div:last-of-type {
    white-space: normal;
    padding-right: 0;
}

Thank you...

Attachments (1)

Change History (5)

This ticket was mentioned in PR #479 on WordPress/wordpress.org by @nikunj8866.


8 months ago
#1

  • Keywords has-patch added; needs-patch removed

Meta Trac ticket: https://meta.trac.wordpress.org/ticket/7919

This PR fixes the width issue in the Pull Request section when no pull requests are attached.

Before Fix:
https://github.com/user-attachments/assets/387b059a-bb11-40b9-9571-bce5bebddad8

After Fix:
https://github.com/user-attachments/assets/2f1c1087-fa5e-472c-8029-6b3c6e9b8f31

#2 @vishalmori
8 months ago

This ticket is duplicate of #7895.

#3 @dd32
8 months ago

#7895 was marked as a duplicate.

#4 @coffee2code
7 months ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 14442:

Trac: Prevent nowrap from applying to message in "Pull Request" section when there are no pull requests to list.

Ensures nowrap style only applies if there is more than one div present, which would only be the case if a PR was being shown.

Props truptikanzariya. gulamdastgir04, coffee2code.
Fixes #7919.
See #7804.

Note: See TracTickets for help on using tickets.