Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#22703 closed enhancement (fixed)

Give more space to Tag/Taxonomy title in Bulk Edit interface

Reported by: tar.gz Owned by: helen
Priority: normal Milestone: 3.6
Component: Quick/Bulk Edit Version: 2.7
Severity: minor Keywords: has-patch
Cc: Focuses: ui

Description

Another minor UI improvement for non-English users, and users of custom taxonomies:

In the "Bulk Edit" interface (found at /wp-admin/edit.php), in the right panel that allows to edit the Tags, the title field ("Tags") is limited by CSS to 5em.

The code for that is located in wp-admin/css/wp-admin.css :

.inline-edit-row fieldset label span.title {
	display: block;
	float: left;
	width: 5em;
}

Those 5em are enough to display "Tags", but longer words will be broken. This doesn't make sense at this location, as there is ample room for a longer string. For instance in German, the default translation "Schlagworte" gets broken over two lines.

The same is true for custom taxonomies: if you create a taxonomy named "Miscellaneous", it gets broken over two lines.

What works:

When using the Quick Edit interface, which has a similar layout, those titles are displayed on one line. A look at the CSS shows that there is an override for the Quick Edit interface:

.quick-edit-row-post fieldset.inline-edit-col-right label span.title {
	width: auto;
	padding-right: 0.5em;
}

A possible solution:

Without changing anything in the markup, we could extend the quick-edit override with one more selector, so that it gets also applied to those title fields:

.inline-edit-row fieldset label.inline-edit-tags span.title,
.quick-edit-row-post fieldset.inline-edit-col-right label span.title {
	width: auto;
	padding-right: 0.5em;
}

Attachments (3)

inline-edit-tags.patch​ (404 bytes ) - added by tar.gz 14 years ago.
title-field-5em-issue.png​ (52.9 KB ) - added by tar.gz 14 years ago.
An example with long taxonomy name.
22703.patch​ (369 bytes ) - added by SergeyBiryukov 14 years ago.

Download all attachments as: .zip

Change History (8)

@tar.gz
14 years ago

An example with long taxonomy name.

#1 @SergeyBiryukov
14 years ago

  • Component UI → Administration
  • Keywords has-patch 3.6-early added
  • Milestone Awaiting Review → Future Release
  • Version trunk → 2.7

#2 @helen
14 years ago

  • Component Administration → Quick/Bulk Edit
  • Keywords ui-focus added
  • Milestone Future Release → 3.6

#3 @helen
14 years ago

  • Keywords needs-patch added; has-patch 3.6-early removed

Would rather the width: auto declaration just be added to the existing .inline-edit-row fieldset label.inline-edit-tags span.title selector, to make it clear what it's for, because it's less text, and because it doesn't need the padding.

#4 @SergeyBiryukov
14 years ago

  • Keywords has-patch added; needs-patch removed

#5 @helen
14 years ago

  • Owner set to helen
  • Resolution → fixed
  • Status new → closed

In 23198:

Allow non-hierarchical taxonomy labels in Bulk Edit to span the available width. Props SergeyBiryukov, tar.gz. fixes #22703.

Note: See TracTickets for help on using tickets.