Opened 2 years ago
Last modified 7 months ago
#17209 new defect (bug)
Category list table breaks when custom post type label is too long
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | 3.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Registered a post type which has a longer label than "posts" (called "resources"). List table listing the categories for that post type breaks slightly when a name is over a certain length. Picture attached.
Offending CSS is setting a 10% width to that column.
I can provide a patch. Though since the number of posts is centered, the heading is left aligned. If that column is widened, should the title be centered as well (since left-aligned may look weird at one point)?
Attachments (1)
Change History (7)
andrewryno — 2 years ago
comment:3
andrewryno — 2 years ago
Replacing the label with "Count" also wouldn't require any CSS changes. I can upload a patch later if we want to change it to that (or any other standardized word).
comment:4
SergeyBiryukov — 22 months ago
Related: #15993
comment:5
andrewryno — 20 months ago
- Keywords ui-feedback ux-feedback added
Fixed in [18875]? Rather than wrapping, it just gets hidden. Suggest closing, although there could possibly be a better option.

I propose we don't use the post type label there at all, as it's not accurate anyway. Just use 'Count' or some other fixed string.