Update List Table Column Sizing

I have a couple plugins that have REALLY LOOOOOOOONG names. When they have updates they cause the table to be super wide and I can’t get to the update buttons above the table. Would it be possible to give the title column a max-width and wrap the name instead of just letting it take over the whole screen?

With some CSS it should be possible. This might work, but perhaps there’s a better solution:

#plugins-updates-global a.open-plugin-details-modal {text-wrap: balance;}

You can add that with the Custom Dashboard Extension.

But I also would advise to contact the plugin author if the name is stuffed with keywords/description instead of just the name. That not allowed or at least unwanted, so you can first kindly ask them to change it back to just the name. If they don’t respond you can also contact the WP plugins team via plugins [at] wordpress [dot] org to report the plugin. You can find the guidelines for this on https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#9-developers-and-their-plugins-must-not-do-anything-illegal-dishonest-or-morally-offensive

2 Likes

@fotan, @josklever provided a very nice solution if you still want to see the full plugin name just wrapped into two or more lines.

In case you don’t need the full plugin name and want to set a strict max-width, you can do it with something like this:

/* Manage Plugins Area*/
.mainwp-ui .mainwp-manage-plugin-accordion .column:has( .open-plugin-details-modal ) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Manage Updates Area */
.mainwp-ui .mainwp-manage-updates-table td:has( .open-plugin-details-modal ) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

You should get results like this:

2 Likes

Thanks. Both of those things work. I appreciate the help.

The name of the plugin I’m talking about is long, but not simply stuffed with key words. Just a long name. As developers, it feels like it’s a better course of action to simply make our stuff work with what’s out there. We really have no way of policing the length of plugin names.

Again, thanks for the assist. Works great. I just thought this might be something that would be useful for the greater community.

2 Likes

Hi @fotan, thanks for your feedback.
I agree that this kind of improvement would be good for everyone, so it is something that we plan to add to the official version.
For now, we just provided these quick workarounds so you have solution until the new version is out.

1 Like

Thanks @bogdan. Loving the constant updates these days.

1 Like