Make WordPress Core

Opened 22 months ago

Closed 22 months ago

Last modified 20 months ago

#62391 closed defect (bug) (invalid)

Category name "preview" breaks admin css

Reported by: matspeekaboo Owned by:
Priority: lowest Milestone:
Component: Administration Version: 6.6.2
Severity: trivial Keywords:
Cc: Focuses: css

Description

Naming a category preview will break the css/layout in post admin list view. This has to be the least important bug ever reported but so you know. I renamed the category to review which works fine.

Attachments (3)

Skärmavbild 2024-11-12 kl. 12.06.58.png (351.1 KB ) - added by matspeekaboo 22 months ago.
Skärmavbild 2024-11-12 kl. 12.07.55.png (284.0 KB ) - added by matspeekaboo 22 months ago.
Skärmavbild 2024-11-12 kl. 12.48.06.png (754.5 KB ) - added by matspeekaboo 22 months ago.

Download all attachments as: .zip

Change History (10)

#1 @sainathpoojary
22 months ago

Hey @matspeekaboo,

Thank you for reporting this issue! I’m currently unable to reproduce it on my end. Could you please provide the steps to reproduce the bug?

For reference, you might find this template helpful for writing issue reports:
https://make.wordpress.org/test/handbook/test-reports/testing-instructions/#bug-defect-testing-instructions-template

#2 @matspeekaboo
22 months ago

  1. Name a category "preview"
  2. Go to post admin view (in this case a CPT)
  3. Table layout breaks.


Inspect the admin list view, I suspect it's either the class name "preview" or maybe "category-preview" that causes this.

#3 @sainathpoojary
22 months ago

Thank you for sharing this @matspeekaboo !

I agree that the preview class with the float: right rule is affecting the UI. I tested this on WordPress versions 6.7-RC5, 6.6.2, trunk, and in the playground, but I wasn’t able to reproduce the issue with the category slug as a class name.

Could you try disabling any active plugins or switching themes to see if the issue persists? I also tested it by creating a custom post type (CPT) but couldn’t replicate the problem.

Thanks!

#4 @matspeekaboo
22 months ago

This is from a customers website so I'm limited to what I can do. I actually couldn't reproduce this issue on a test site either but as you pointed out it's the preview class with float:right that is causing the UI the break.

#5 @desrosj
22 months ago

  • Focuses administration removed
  • Keywords close reporter-feedback added
  • Priority normallowest

Hi @matspeekaboo,

Welcome to Trac!

I am also unable to reproduce this currently. I noticed that the screenshot of the markup includes some extra columns for something called crunchify. It's likely that there's something in those custom columns or a plugin that is causing this.

To rule out custom columns, you could use the Screen Options at the top right of the screen to uncheck these custom columns and see if that has any impact. It won't stop the CSS or JS of the plugin from being loaded, but it may allow you to determine the cause without disabling plugins.

I'm marking this with a close suggestion because other contributors have not been able to reproduce this, but will leave it open a bit longer for more details.

#6 @matspeekaboo
22 months ago

  • Resolutioninvalid
  • Status newclosed

Hi, thanks.

No it makes no difference if remove crunchify, which actually adds an thumbnail to the column so clearly a suspect. Anyway, the problem is caused by this site in some way, sorry to waste your time on this and by all means close it.

/Mats

#7 @desrosj
20 months ago

  • Keywords close reporter-feedback removed
  • Milestone Awaiting Review

@matspeekaboo No worries! If you do find something specific in WordPress that's causing the issue, feel free to reopen with more details!

Note: See TracTickets for help on using tickets.