WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#11858 closed enhancement (fixed)

Add Margin to QuickEdit Categories for Easier Viewing

Reported by: studionashvegas Owned by: nacin
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Quick/Bulk Edit Keywords: has-patch
Focuses: Cc:

Description

My first ticket, so pardon any ignorance.

When you're quick editing posts the categories are all lined up flush to the left margin, resulting in child categories being hard to distinguish from parent categories.

It's a simple fix, and i've attached the necessary CSS below.

Attachments (2)

categorymargin-quickedit.css (35 bytes) - added by studionashvegas 5 years ago.
CSS to add to admin styles in order to segment child categories in quick edit
11858.diff (391 bytes) - added by nacin 5 years ago.
wp-admin.dev.css, adding to existing indent declaration

Download all attachments as: .zip

Change History (10)

@studionashvegas5 years ago

CSS to add to admin styles in order to segment child categories in quick edit

comment:1 @studionashvegas5 years ago

  • Cc studionashvegas added

comment:2 @studionashvegas5 years ago

  • Keywords ui quickedit added
  • Milestone changed from Unassigned to 3.0
  • Owner set to studionashvegas
  • Severity changed from minor to normal
  • Status changed from new to accepted

comment:3 @studionashvegas5 years ago

  • Keywords has-patch added

@nacin5 years ago

wp-admin.dev.css, adding to existing indent declaration

comment:4 @nacin5 years ago

I've added another patch that incorporates this into wp-admin.dev.css, applying the same CSS as the list and post category checklists.

To test, you'd need define('STYLE_DEBUG', true); in wp-config.php.

comment:5 @chrisscott5 years ago

  • Keywords tested added

Tested attachment:ticket:11858:11858.diff on r13330 and it works well.

comment:6 @nacin5 years ago

  • Keywords ui quickedit tested removed
  • Owner changed from studionashvegas to nacin

Is there any reason we wouldn't want to do this? The Quick Edit categories box isn't so wide, so a deep hierarchy could pose an issue. I doubt we account for horizontal scrolling in the div.

Needs a second look, anyone want to create a large hierarchy on their testbed?

comment:7 @chrisscott5 years ago

Since the layout of the post edit table is somewhat fluid, the result of really deep hierarchy (6 or more in my testing) for the Quick Edit display is that the Tags column drops below it. This is also the same result if you don't have a deep hierarchy and just resize your browser window to be narrower than about 920px. Tested on FF and Safari on a Mac.

comment:8 @dd325 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [13901]) Display hierarchy in Hierarchical taxonomy Quick edit box. Props nacin. Fixes #11858

Note: See TracTickets for help on using tickets.