MDL-79158 gradereport_grader: align collapsed columns dialog element.

This commit is contained in:
Paul Holden
2023-09-12 12:25:44 +01:00
parent b4c6ed3650
commit 717c4b397e
@@ -111,13 +111,16 @@ class action_bar extends \core_grades\output\action_bar {
);
$data['searchdropdown'] = $searchdropdown->export_for_template($output);
// The collapsed column dialog is aligned to the edge of the screen, we need to place it such that it also aligns.
$collapsemenudirection = right_to_left() ? 'dropdown-menu-left' : 'dropdown-menu-right';
$collapse = new comboboxsearch(
true,
get_string('collapsedcolumns', 'gradereport_grader', 0),
null,
'collapse-columns',
'collapsecolumn',
'collapsecolumndropdown p-3 flex-column',
'collapsecolumndropdown p-3 flex-column ' . $collapsemenudirection,
null,
true,
);