MDL-80562 reportbuilder: switch to menu/ellipsis icon for actions.

This commit is contained in:
Paul Holden 2024-01-26 16:00:39 +00:00
parent 13c12756b4
commit e8f5f7d23d
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
5 changed files with 20 additions and 2 deletions

View File

@ -259,7 +259,10 @@ class system_report_table extends base_report_table {
global $OUTPUT;
$menu = new action_menu();
$menu->set_menu_trigger($OUTPUT->pix_icon('a/setting', get_string('actions', 'core_reportbuilder')));
$menu->set_menu_trigger(
$OUTPUT->pix_icon('i/menu', get_string('actions', 'core_reportbuilder')),
'btn btn-icon d-flex align-items-center justify-content-center no-caret',
);
$actions = array_filter($this->report->get_actions(), function($action) use ($row) {
// Only return dividers and action items who can be displayed for current users.

View File

@ -4,7 +4,7 @@
// Size of default icons.
$icon-width: 16px;
$icon-height: 16px;
// Size of big icons.
// Size of medium icons.
$icon-medium-width: 32px;
$icon-medium-height: 32px;
// Size of big icons.

View File

@ -26,6 +26,11 @@
}
.action-menu .menubar {
justify-content: end;
.btn.btn-icon {
height: $icon-medium-height;
width: $icon-medium-width;
@include border-radius();
}
}
}

View File

@ -38077,6 +38077,11 @@ div.editor_atto_toolbar button .icon {
.reportbuilder-table .action-menu .menubar {
justify-content: end;
}
.reportbuilder-table .action-menu .menubar .btn.btn-icon {
height: 32px;
width: 32px;
border-radius: 0.5rem;
}
.reportbuilder-wrapper .filters-dropdown {
width: 27rem;

View File

@ -38011,6 +38011,11 @@ div.editor_atto_toolbar button .icon {
.reportbuilder-table .action-menu .menubar {
justify-content: end;
}
.reportbuilder-table .action-menu .menubar .btn.btn-icon {
height: 32px;
width: 32px;
border-radius: 0.25rem;
}
.reportbuilder-wrapper .filters-dropdown {
width: 27rem;