Compatibility Issue with AutomateWoo – Workflow Folders Column Width
-
Dear Wicked Folders Team,
I am writing to report a compatibility issue between Wicked Folders and the AutomateWoo plugin. After installing Wicked Folders, the layout of the AutomateWoo Workflows list table breaks. The “Workflow Folders” column becomes too narrow, causing folder names to be cut off.
Steps to Reproduce:
- Install both Wicked Folders and AutomateWoo plugins.
- Navigate to AutomateWoo > Workflows.
- Observe that the “Workflow Folders” column is too narrow, truncating folder names.
Cause of the Issue:
It appears that Wicked Folders applies a table-layout: fixed style to the list table and calculates column widths dynamically using JavaScript when the folder pane is resized. However, the current implementation only sets explicit widths for the first two columns, squeezing the “Workflow Folders” column.
Temporary Workaround:
I have found a temporary workaround by adding the following JavaScript code to my theme’s functions.php file:
add_action( 'admin_footer', 'wicked_folders_adjust_workflow_table_layout' );
function wicked_folders_adjust_workflow_table_layout() {
$screen = get_current_screen();
if ( $screen && 'edit-aw_workflow' === $screen->id ) :
?>
<script type="text/javascript">
jQuery(function($) {
// Function to unset the fixed table layout
function unsetFixedTableLayout() {
$('#posts-filter .wp-list-table').css('table-layout', 'auto');
}
// Run the function initially
unsetFixedTableLayout();
// Run the function after Wicked Folders AJAX updates
$(document).ajaxComplete(unsetFixedTableLayout);
});
</script>
<?php
endif;
}This code removes the table-layout: fixed style, allowing the browser to adjust column widths based on content. However, it would be ideal to have a more permanent solution within Wicked Folders itself.
Thank you for your time and attention to this issue. I appreciate your efforts in making Wicked Folders a robust and compatible plugin.
- You must be logged in to reply to this topic.