Making WordPress.org

Opened 7 years ago

Closed 7 years ago

#2774 closed defect (bug) (fixed)

Plugin Details page tag section messup.

Reported by: mp518's profile mp518 Owned by: otto42's profile 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 7 years ago.
Meshup
2774.PNG (10.1 KB) - added by SergeyBiryukov 7 years ago.
2774.patch (743 bytes) - added by SergeyBiryukov 7 years ago.
2774.after.PNG (8.9 KB) - added by SergeyBiryukov 7 years ago.

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
7 years ago

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

@SergeyBiryukov
7 years ago

@SergeyBiryukov
7 years ago

#2 @SergeyBiryukov
7 years 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
7 years 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
7 years 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.