Opened 11 years ago
Closed 10 years ago
#26202 closed defect (bug) (fixed)
Plugin install/update thickbox title should truncate at 103 characters
Reported by: | usayd | Owned by: | helen |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | minor | Version: | 3.8 |
Component: | Plugins | Keywords: | has-patch |
Focuses: | administration | Cc: |
Description
When plugin title exceeds 103 chars thickbox styling breaks. This would apply for install themes too.
Tested across Win/Mac, Chrome, FF.
Can be tested with live plugin titled 'MyGeoPosition.com Geotagging: Geotags / GeoMetatags / GeoFeedtags / GeoMicroformats / Maps '
Suggested fix: Truncate titles at 100 characters, add ellipsis ...
Attachments (4)
Change History (18)
#1
@
11 years ago
I was able to reproduce, and I've attached a patch to fix.
If the name of the plugin is greater than 70 characters, the patch truncates the name and adds ellipses.
#9
@
11 years ago
Please use …
for the hellips and mb_substr()
for truncating.
To be responsive we can also add some CSS like
#TB_ajaxWindowTitle { -o-text-overflow: ellipsis; text-overflow: ellipsis; width: 90%; white-space: nowrap; overflow: hidden; }
#10
@
11 years ago
Attached patch for original using correct syntax.
Your CSS suggestion works great. I would use it within a media query instead, that way width can be reduced to 70% so it resizes to 320px screens.
#11
@
11 years ago
Thinking the CSS fix is enough in this case. The advantage is it works for any width, including responsive/small screens, and the string doesn't need to be cut at 70 chars.
Multi lines on thickbox breaks styling