Fix responsive

This commit is contained in:
Laurent Destailleur 2022-11-23 11:57:53 +01:00
parent a36ed6a3c4
commit 3a59344c2f
4 changed files with 17 additions and 5 deletions

View File

@ -1644,8 +1644,10 @@ class ActionComm extends CommonObject
}
if (!empty($this->note_private)) {
$tooltip .= '<br><br><b>'.$langs->trans('Description').':</b><br>';
$texttoshow = dolGetFirstLineOfText($this->note_private, 10);
$texttoshow = dolGetFirstLineOfText($this->note_private, 10); // Try to limit length of content
$tooltip .= '<div class="tenlinesmax">'; // Restrict height of content into the tooltip
$tooltip .= (dol_textishtml($texttoshow) ? str_replace(array("\r", "\n"), "", $texttoshow) : str_replace(array("\r", "\n"), '<br>', $texttoshow));
$tooltip .= '</div>';
}
$linkclose = '';
//if (!empty($conf->global->AGENDA_USE_EVENT_TYPE) && $this->type_color)

View File

@ -271,12 +271,10 @@ class FormActions
break;
}
$ref = $actioncomm->getNomUrl(1, -1);
print '<tr class="oddeven">';
// Ref
print '<td class="nowraponall">'.$ref.'</td>';
print '<td class="nowraponall">'.$actioncomm->getNomUrl(1, -1).'</td>';
// Onwer
print '<td class="nowraponall tdoverflowmax125">';
@ -310,7 +308,7 @@ class FormActions
$labeltype .= ' - '.$arraylist[$actionstatic->code]; // Use code in priority on type_code
}
}
print '<td class="tdoverflowmax100" title="'.$labeltype.'">';
print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($labeltype).'">';
print $actioncomm->getTypePicto();
print $labeltype;
print '</td>';

View File

@ -1395,6 +1395,12 @@ select.flat.selectlimit {
overflow: hidden;
height: auto !important;
}
.tenlinesmax {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 10;
overflow: hidden;
}
.tablelistofcalendars {
margin-top: 25px !important;

View File

@ -1514,6 +1514,12 @@ select.flat.selectlimit {
overflow: hidden;
height: auto !important;
}
.tenlinesmax {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 10;
overflow: hidden;
}
.tablelistofcalendars {
margin-top: 25px !important;