diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php
index 7daa715bbb9..47de50d0fd8 100644
--- a/htdocs/core/ajax/ajaxdirtree.php
+++ b/htdocs/core/ajax/ajaxdirtree.php
@@ -412,15 +412,15 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
if (preg_match('/^'.preg_quote($val['fullrelativename'].'/', '/').'/', $preopened)) {
$collapsedorexpanded = 'expanded';
}
- print '
'; // collapsed is opposite if expanded
+ print ''; // collapsed is opposite if expanded
- print "";
print dol_escape_htmltag($file);
- print "";
+ print "";
print '';
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index da006de3616..4b1ccc36bc0 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -3318,7 +3318,14 @@ li.expanded > a.fmdirlia.jqft.ecmjqft {
font-weight: bold !important;
}
+.divfmdirlia {
+ width: calc(100% - 100px);
+}
+a.fmdirlia {
+ white-space: break-spaces;
+ word-break: break-all;
+}
/* ============================================================================== */
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 874e77985a2..687242d2451 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -3303,6 +3303,11 @@ li.expanded > a.fmdirlia.jqft.ecmjqft {
font-weight: bold !important;
}
+a.fmdirlia {
+ white-space: break-spaces;
+ word-break: break-all;
+}
+
/* ============================================================================== */
/* Onglets */