From 7f3d2e2836b0a1e730d1355832ce0e6753dac2d1 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Wed, 6 Nov 2024 09:31:02 +0100 Subject: [PATCH] Fix width of sortorder spacers on settings pages with item lists --- classes/table/flavours_overview.php | 2 +- classes/table/smartmenus_items.php | 2 +- classes/table/smartmenus_menus.php | 2 +- scss/boost_union/post.scss | 9 +++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/classes/table/flavours_overview.php b/classes/table/flavours_overview.php index c6c1e8e2419..e0c28c91619 100644 --- a/classes/table/flavours_overview.php +++ b/classes/table/flavours_overview.php @@ -104,7 +104,7 @@ public function col_updown($data) { $updown = ''; // Get spacer icon. - $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', ['class' => 'iconsmall']); + $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', ['class' => 'iconsmall theme_boost_union-sortorderspacer']); // If there is more than one flavour and we do not handle the first (number 0) flavour. if ($this->count > 0) { diff --git a/classes/table/smartmenus_items.php b/classes/table/smartmenus_items.php index bf432214c77..cf1dec2e613 100644 --- a/classes/table/smartmenus_items.php +++ b/classes/table/smartmenus_items.php @@ -239,7 +239,7 @@ public function col_updown($data) { $updown = ''; // Get spacer icon. - $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', ['class' => 'iconsmall']); + $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', ['class' => 'iconsmall theme_boost_union-sortorderspacer']); // If there is more than one smart menu item and we do not handle the first (number 0) smart menu item. if ($this->count > 0) { diff --git a/classes/table/smartmenus_menus.php b/classes/table/smartmenus_menus.php index cb0b0ba7ba7..26f6001bb2b 100644 --- a/classes/table/smartmenus_menus.php +++ b/classes/table/smartmenus_menus.php @@ -158,7 +158,7 @@ public function col_updown($data) { $updown = ''; // Get spacer icon. - $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', ['class' => 'iconsmall']); + $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', ['class' => 'iconsmall theme_boost_union-sortorderspacer']); // If there is more than one smart menu and we do not handle the first (number 0) smart menu. if ($this->count > 0) { diff --git a/scss/boost_union/post.scss b/scss/boost_union/post.scss index 1b8c8b428ce..92d8a21c064 100644 --- a/scss/boost_union/post.scss +++ b/scss/boost_union/post.scss @@ -2535,6 +2535,15 @@ body.theme_boost-union-footerbuttonnone.jsenabled { } +/*--------------------------------------- + * Settings: Setting pages with item lists + --------------------------------------*/ + +img.theme_boost_union-sortorderspacer { + width: 1.25em; +} + + /*======================================= * Goodies for designers ======================================*/