WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 4 weeks ago

#46328 reviewing defect (bug)

Long spam link mobile view

Reported by: Marius84 Owned by: davidbaumwald
Milestone: 5.8 Priority: normal
Severity: minor Version: 3.9
Component: Comments Keywords: good-first-bug has-patch reporter-feedback
Focuses: ui Cc:

Description

I got some spam comments with long link. When I access admin dashboard trough mobile phone and go to the spam comment section the text "Item" cover "Empty Trash" text.

Screenshot: https://prnt.sc/mp1m7i

Attachments (5)

IMG_5298.PNG (295.4 KB) - added by Marius84 2 years ago.
common.css.patch (338 bytes) - added by sharaz 22 months ago.
46328.diff (364 bytes) - added by donmhico 21 months ago.
Update the common.css.patch.
46328.1.diff (639 bytes) - added by donmhico 21 months ago.
Fix overflowing long link and overlapping comment count in Empty Trash button issue.
46328.2.diff (638 bytes) - added by audrasjb 3 months ago.
patch refreshed against trunk

Download all attachments as: .zip

Change History (31)

@Marius84
2 years ago

#1 @earnjam
22 months ago

  • Focuses ui added
  • Keywords needs-patch good-first-bug added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 5.1 to 3.9

Thanks @Marius84! I am able to replicate this.

It looks like it's due to this rule on line 1900 in /wp-admin/css/list-tables.css

.widefat * {
        word-wrap: normal;
}

It overrides the default break-word value for .widefat * in the common css file, but I'm not sure why specifically. I'd be a bit weary of changing that for how many things it would affect. Might be better to target the comments list table directly, or even the specific paragraph tag where these things are overrunning the container.

@sharaz
22 months ago

#2 @sharaz
22 months ago

  • Keywords has-patch added; needs-patch removed
  • Resolution set to invalid
  • Status changed from new to closed

#3 @sharaz
22 months ago

  • Keywords has-unit-tests dev-feedback added
  • Resolution invalid deleted
  • Status changed from closed to reopened

#4 @earnjam
22 months ago

  • Keywords needs-testing added; has-unit-tests removed

This ticket was mentioned in Slack in #core by sharaz. View the logs.


22 months ago

#6 @SergeyBiryukov
22 months ago

  • Milestone changed from Future Release to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from reopened to reviewing

#7 @SergeyBiryukov
21 months ago

  • Keywords needs-patch added; has-patch dev-feedback needs-testing removed

In my testing, the overlapping of "Empty Trash" and "1 item" happens regardless of the long URL. Looks like absolute positioning is not ideal for smaller screens like this.

common.css.patch fixes the URL wrapping, but not the overlapping.

#8 @donmhico
21 months ago

common.css.patch doesn't work for me. See my screenshot - https://prnt.sc/opdcvf

@donmhico
21 months ago

Update the common.css.patch.

@donmhico
21 months ago

Fix overflowing long link and overlapping comment count in Empty Trash button issue.

#9 @donmhico
21 months ago

  • Keywords has-patch added; needs-patch removed

#10 @davidbaumwald
19 months ago

@SergeyBiryukov Are you still up for including this one in 5.3?

This ticket was mentioned in Slack in #core by marybaum. View the logs.


18 months ago

#12 @davidbaumwald
18 months ago

  • Keywords commit added

This one was brought up in today's scrub. This looks like a good candidate for 5.3, so marking for commit.

#13 @marybaum
18 months ago

  • Keywords needs-testing added

#14 @davidbaumwald
18 months ago

  • Keywords commit removed
  • Milestone changed from 5.3 to Future Release

With 5.3 RC1 releasing today, this ticket is being moved to Future Release. If any committer feels this can be worked in to 5.3 before the deadline or can assume ownership in the 5.4 cycle, feel free to move it back up.

#15 @audrasjb
3 months ago

  • Keywords needs-refresh added; needs-testing removed
  • Milestone changed from Future Release to 5.7

Hi, the patch needs to be refreshed against trunk but it looks like it solves the issue (I reproduced the issue recently). Adding this on the 5.7 list.

@audrasjb
3 months ago

patch refreshed against trunk

#16 @audrasjb
3 months ago

  • Keywords needs-refresh removed

This ticket was mentioned in Slack in #core by sergey. View the logs.


3 months ago

#18 @hellofromTonya
3 months ago

  • Keywords commit added

From Sergey:

There's a refreshed patch, seems like a good commit candidate

Marking as a commit candidate.

This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.


7 weeks ago

This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.


7 weeks ago

#21 @hellofromTonya
7 weeks ago

  • Milestone changed from 5.7 to 5.8

With 5.7 RC1 minutes away, moving this to 5.8 which will allow the fix to go through a full beta cycle.

#22 @davidbaumwald
4 weeks ago

  • Owner changed from SergeyBiryukov to davidbaumwald

#23 @davidbaumwald
4 weeks ago

  • Keywords needs-testing-info added

@audrasjb Looking to move this one forward. Can you provide some information on how to reproduce the original issue and how to test the latest patch resolves the issue?

#24 @audrasjb
4 weeks ago

  • Keywords needs-testing-info removed

@davidbaumwald to reproduce the original issue, put long links into the content of some comments marked as spam and try to visit the page using a small screen browser. See the first screenshot provided by the reporter.

#25 @audrasjb
4 weeks ago

  • Keywords commit removed

Hmmm… looks like the issue was already solved by another patch.
Now we have this in common.css:

.widefat * {
	word-wrap: break-word;
}

#26 @davidbaumwald
4 weeks ago

  • Keywords reporter-feedback added

@audrasjb Thanks for the information! I am unable to reproduce the original issue locally in Chrome and Firefox at any break point.

@Marius84 Can you confirm this is still an issue in WordPress 5.7?

Note: See TracTickets for help on using tickets.