This commit is contained in:
Laurent Destailleur 2022-10-13 17:22:29 +02:00
parent 3fb7e1252d
commit 44e774c1e1
3 changed files with 15 additions and 3 deletions

View File

@ -412,15 +412,15 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
if (preg_match('/^'.preg_quote($val['fullrelativename'].'/', '/').'/', $preopened)) { if (preg_match('/^'.preg_quote($val['fullrelativename'].'/', '/').'/', $preopened)) {
$collapsedorexpanded = 'expanded'; $collapsedorexpanded = 'expanded';
} }
print '<li class="directory '.$collapsedorexpanded.'">'; // collapsed is opposite if expanded print '<li class="directory '.$collapsedorexpanded.' lidirecm">'; // collapsed is opposite if expanded
print "<a class=\"fmdirlia jqft ecmjqft\" href=\""; print '<div class="divfmdirlia inline-block"><a class="fmdirlia jqft ecmjqft" href="';
print "#"; print "#";
print "\" rel=\"".dol_escape_htmltag($val['fullrelativename'].'/')."\" id=\"fmdirlia_id_".$val['id']."\""; print "\" rel=\"".dol_escape_htmltag($val['fullrelativename'].'/')."\" id=\"fmdirlia_id_".$val['id']."\"";
print " onClick=\"loadandshowpreview('".dol_escape_js($val['fullrelativename'])."',".$val['id'].")"; print " onClick=\"loadandshowpreview('".dol_escape_js($val['fullrelativename'])."',".$val['id'].")";
print "\">"; print "\">";
print dol_escape_htmltag($file); print dol_escape_htmltag($file);
print "</a>"; print "</a></div>";
print '<div class="ecmjqft">'; print '<div class="ecmjqft">';

View File

@ -3318,7 +3318,14 @@ li.expanded > a.fmdirlia.jqft.ecmjqft {
font-weight: bold !important; font-weight: bold !important;
} }
.divfmdirlia {
width: calc(100% - 100px);
}
a.fmdirlia {
white-space: break-spaces;
word-break: break-all;
}
/* ============================================================================== */ /* ============================================================================== */

View File

@ -3303,6 +3303,11 @@ li.expanded > a.fmdirlia.jqft.ecmjqft {
font-weight: bold !important; font-weight: bold !important;
} }
a.fmdirlia {
white-space: break-spaces;
word-break: break-all;
}
/* ============================================================================== */ /* ============================================================================== */
/* Onglets */ /* Onglets */