#6732 closed defect (bug) (fixed)
table of contents is width of longest link
Reported by: | joyously | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | has-screenshots |
Cc: |
Description
Some of the headings can be long, and the table of contents is not set to a max width, so the long heading can make the table wider than the page content.
It looks like CSS for max-width is needed.
See https://developer.wordpress.org/reference/functions/wp_enqueue_script/ for an example.
Attachments (1)
Change History (4)
#1
@
21 months ago
I've tested this in the new theme (https://github.com/WordPress/wporg-developer), which should be launched soon-ish, and this issue no longer exists there.
I'll leave this open for now but it shouldn't require any work.
#2
@
12 months ago
- Resolution set to fixed
- Status changed from new to closed
Fixed in 884ca0a on GitHub:
Prevent long links in ToC from making ToC too wide.
Props joyously.
Fixes #6732.
Note: See
TracTickets for help on using
tickets.
table of contents is wider than page content