Skip to content

Commit

Permalink
Fix width of sortorder spacers on settings pages with item lists
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Nov 6, 2024
1 parent 0de1958 commit 7f3d2e2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/table/flavours_overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion classes/table/smartmenus_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion classes/table/smartmenus_menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 9 additions & 0 deletions scss/boost_union/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
======================================*/
Expand Down

0 comments on commit 7f3d2e2

Please sign in to comment.