WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 8 months ago

#2774 closed defect (fixed)

Plugin Details page tag section messup.

Reported by: mp518 Owned by: Otto42
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords: has-patch
Cc:

Description (last modified by SergeyBiryukov)

When user go plugin details page then if tag name string is like "banner-management-woocommerce-banner-management" this type that time tag design is messup.

Dif:
pub/wporg-plugins/css/style.css?ver=20170420b

.plugin-meta [rel=tag] {
    background: #eee;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #000;
    display: inline-block;
    font-size: 10.24px;
    font-size: .64rem;
    margin: 2px;
    padding: 3px 6px;
    position: relative;
    white-space: nowrap; 
    width: auto;
}

to correct below style

.plugin-meta [rel=tag] {
    background: #eee;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #000;
    display: inline-block;
    font-size: 10.24px;
    font-size: .64rem;
    margin: 2px;
    padding: 3px 6px;
    position: relative;
    width: auto;
}

Attachments (4)

messup in tag.PNG PNG Image 1348 × 564 pixels .png (77.3 KB) - added by mp518 8 months ago.
Meshup
2774.PNG (10.1 KB) - added by SergeyBiryukov 8 months ago.
2774.patch (743 bytes) - added by SergeyBiryukov 8 months ago.
2774.after.PNG (8.9 KB) - added by SergeyBiryukov 8 months ago.

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
8 months ago

  • Description modified (diff)
  • Type changed from task to defect

@SergeyBiryukov
8 months ago

#2 @SergeyBiryukov
8 months ago

Removing white-space: nowrap causes long tag names to wrap to several lines, see 2774.PNG.

Another option is to use text-overflow: ellipsis, see 2774.patch and 2774.after.PNG.

#3 @Otto42
8 months ago

I like the ellipsis better, but not the way it causes the right to not be aligned properly anymore. Bringing down the max-width to about 95% fixes that and leaves room for the padding/margins.

#4 @Otto42
8 months ago

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

In 5410:

Add ellipsis overflow to extra long tags in the meta widget. Fixes #2774. props @SergeyBiryukov

Note: See TracTickets for help on using tickets.