mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-50293 navigation: File name not wrapping
A long File name doesn't always wrap correctly in the Navigation block.
This commit is contained in:
parent
e1d4e288ac
commit
483fb4ec44
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class block_navigation_renderer extends plugin_renderer_base {
|
||||||
} else if ($item->action instanceof action_link) {
|
} else if ($item->action instanceof action_link) {
|
||||||
//TODO: to be replaced with something else
|
//TODO: to be replaced with something else
|
||||||
$link = $item->action;
|
$link = $item->action;
|
||||||
$link->text = $icon.$link->text;
|
$link->text = $icon.html_writer::span($link->text, 'item-content-wrap');
|
||||||
$link->attributes = array_merge($link->attributes, $attributes);
|
$link->attributes = array_merge($link->attributes, $attributes);
|
||||||
$content = $this->output->render($link);
|
$content = $this->output->render($link);
|
||||||
} else if ($item->action instanceof moodle_url) {
|
} else if ($item->action instanceof moodle_url) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue