Learnpath: Add disabled icons up/down to first and last lp in learning paths list to avoid icons clipping

pull/5206/head
Yannick Warnier 9 months ago
parent 2ea04beee3
commit d73c9d876a
  1. 2
      public/main/lp/lp_list.php

@ -714,7 +714,9 @@ foreach ($categories as $category) {
"lp_controller.php?$cidReq&action=move_lp_down&lp_id=$id&category_id=$categoryId",
['title' => htmlentities(get_lang('Move down'))]
);
$dsp_order .= Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon-disabled', '', 22, get_lang('Move up'));
} elseif ($current == $max - 1 && 1 != $max) {
$dsp_order .= Display::getMdiIcon('arrow-down-bold', 'ch-tool-icon-disabled', '', 22, get_lang('Move down'));
$dsp_order .= Display::url(
Display::getMdiIcon('arrow-up-bold', 'ch-tool-icon', '', 22),
"lp_controller.php?$cidReq&action=move_lp_up&lp_id=$id&category_id=$categoryId",

Loading…
Cancel
Save