admin display improvements

This commit is contained in:
2026-09-23 21:14:58 +02:00
parent 0e59bf5129
commit 5bb35aa1ec
4 changed files with 61 additions and 4 deletions
@@ -23,3 +23,15 @@ function materio_admin_field_widget_single_element_form_alter(array &$element, \
$element['#attached']['library'][] = 'materio_admin/term_reference_tree';
}
}
/**
* Implements hook_page_attachments().
*
* Loads the general admin table styling on every admin route (compact
* paddings + constrained widths, replacing the old matminimal rules).
*/
function materio_admin_page_attachments(array &$attachments) {
if (\Drupal::service('router.admin_context')->isAdminRoute()) {
$attachments['#attached']['library'][] = 'materio_admin/admin_tables';
}
}