diff --git a/djangocms_versioning_filer/static/djangocms_versioning_filer/css/admin_filer_list_actions.css b/djangocms_versioning_filer/static/djangocms_versioning_filer/css/admin_filer_list_actions.css index d5451be..1aa82fe 100644 --- a/djangocms_versioning_filer/static/djangocms_versioning_filer/css/admin_filer_list_actions.css +++ b/djangocms_versioning_filer/static/djangocms_versioning_filer/css/admin_filer_list_actions.css @@ -71,6 +71,10 @@ extending the pagetree classes provided by CMS /* style for each option row */ +td.column-action a.action-button { + margin-right: 4px !important; +} + ul.cms-actions-dropdown-menu-inner { margin: 0; padding: 0 !important; @@ -115,10 +119,17 @@ a.cms-actions-dropdown-menu-item-anchor:link:active { } /* align the option text with it's icon */ +a.cms-actions-dropdown-menu-item-anchor { + display: flex; + align-items: center; + gap: 1rem; +} + a.cms-actions-dropdown-menu-item-anchor span { - line-height: 1rem; - vertical-align: 20%; - margin-left: 10px; + line-height: 1rem !important; + width: auto !important; + height: auto !important; + margin: 0 !important; } /* disable any inactive option */ a.cms-actions-dropdown-menu-item-anchor.inactive { diff --git a/djangocms_versioning_filer/static/djangocms_versioning_filer/js/admin_filer_list_actions.js b/djangocms_versioning_filer/static/djangocms_versioning_filer/js/admin_filer_list_actions.js index 9bf930e..49caff4 100644 --- a/djangocms_versioning_filer/static/djangocms_versioning_filer/js/admin_filer_list_actions.js +++ b/djangocms_versioning_filer/static/djangocms_versioning_filer/js/admin_filer_list_actions.js @@ -9,14 +9,14 @@ function createBurgerMenu(row) { let actions = $(row).children('.column-action'); - if (!actions.length || !$(actions[0]).children('.action-button').length) { + if (!actions.length || !$(actions[0]).children('.action-button:not(.top-level)').length) { /* skip any rows without actions to avoid errors */ return; } /* create burger menu anchor icon */ let icon = document.createElement('span'); - icon.setAttribute('class', "fa fa-bars"); + icon.setAttribute('class', "cms-icon cms-icon-settings"); let anchor = document.createElement('a'); anchor.setAttribute('class', 'action-button cms-filer-action-btn closed'); @@ -35,7 +35,7 @@ ul.setAttribute('class', 'cms-actions-dropdown-menu-inner'); /* get the existing actions and move them into the options container */ - $(actions[0]).children('.action-button').each(function (index, item) { + $(actions[0]).children('.action-button:not(.top-level)').each(function (index, item) { let li = document.createElement('li'); /* create an anchor from the item */ diff --git a/djangocms_versioning_filer/templates/admin/filer/folder/directory_listing.html b/djangocms_versioning_filer/templates/admin/filer/folder/directory_listing.html index 2264b4f..0fa00d9 100644 --- a/djangocms_versioning_filer/templates/admin/filer/folder/directory_listing.html +++ b/djangocms_versioning_filer/templates/admin/filer/folder/directory_listing.html @@ -161,7 +161,7 @@