Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#63689 new defect (bug)

[Bug] My Sites dashboard layout doesn't adapt to long site names

Reported by: ratul01047's profile ratul01047 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.3
Component: Networks and Sites Keywords: has-patch
Focuses: ui, multisite Cc:

Description (last modified by sabernhardt)

Problem: Site names that are longer than the fixed container width get truncated or cause layout issues in the My Sites dashboard.

Current Behavior: https://www.awesomescreenshot.com/image/55409211?key=e2878c76ab4d9779e9dc7a7ce348457a

Expected Behavior: Site containers should adapt to content width for better readability.

Proposed Solution: Add width: auto or similar responsive styling to site list items.

Attachments (2)

Screenshot 2025-07-12 at 4.34.25 PM.png (58.9 KB) - added by immeet94 4 months ago.
Before:
Screenshot 2025-07-12 at 4.35.03 PM.png (64.3 KB) - added by immeet94 4 months ago.
After:

Download all attachments as: .zip

Change History (6)

This ticket was mentioned in PR #9242 on WordPress/wordpress-develop by @vipulgupta003.


4 months ago
#1

  • Keywords has-patch added

#2 @immeet94
4 months ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added

#3 @pmbaldha
4 months ago

Test Report

Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/9242.diff

Steps to Reproduce or Test

  1. Create Multisite WordPress website.
  2. Go to main site > Settings > General.
  3. Fill the Site Title: waerwewegfnbhkmjhkhjknhbljhljhlkjhklhjlhjljhljhljhljhlkjhljhlkjhlkjhlkjhlkjhlkjlkjhlkjhlkjlkglghkjhgk and click on the "Save Changes" button.
  4. Go to Dashboard > My Sites.
  5. 🐞 The main site title is not rendered properly. Screenshot: https://nimb.ws/aVqHG8M

Expected Results

When testing a patch to validate it works as expected:

When reproducing a bug:

Environment

  • WordPress: 6.8.1
  • PHP: 8.0.30-dev
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 5.5 / Client: 3.40.1)
  • Browser: Chrome 138.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.2
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

When reproducing a bug/defect:

  • ❌ Error condition occurs.

When testing the bugfix patch:

  • 🐞 Issue resolved with patch.
Version 0, edited 4 months ago by pmbaldha (next)

#4 @sabernhardt
4 months ago

  • Description modified (diff)
  • Version changed from 6.8 to 4.3

This calls attention to a few things about the list on the My Sites page:

  1. @ratul01047's image shows a single narrow container for a network of one site (using the subdomain as its Site Title). [33072] made columns responsive, but it set width percentages for up to six columns without checking if the user's total is fewer than that.
  2. PR 9242 adds CSS to break long words onto multiple lines if necessary. That works, yet reusing the word-wrap-break-word class on the ul (or the individual li elements) would achieve the same goal.
    <ul class="my-sites striped word-wrap-break-word">
  3. The My Sites page has h3 headings that skip the h2 level. Both elements are styled the same, so the headings could be changed to h2 rather easily.
  4. Further outside the original scope of this ticket, any Global Settings content outputs inside the ul without its own li. This was a table row with two columns before [33072], so the content might not belong inside the list. I did not find any examples of the filter using the 'global' context.
Note: See TracTickets for help on using tickets.