Fix for smartphone

This commit is contained in:
Laurent Destailleur 2020-10-16 14:50:36 +02:00
parent 4dea8c4bb7
commit 3e75cbbeb5
2 changed files with 14 additions and 3 deletions

View File

@ -15,13 +15,13 @@ class DolMemoryCollector extends MemoryCollector
*/
public function collect()
{
global $langs;
global $conf, $langs;
$this->updatePeakUsage();
return array(
'peak_usage' => $this->peakUsage,
//'peak_usage_str' => $this->getDataFormatter()->formatBytes($this->peakUsage, 2)
'peak_usage_str' => $this->peakUsage.' '.$langs->trans("bytes")
'peak_usage_str' => (empty($conf->dol_optimize_smallscreen) ? dol_print_size($this->peakUsage, 0) : dol_print_size($this->peakUsage, 1))
);
}

View File

@ -6391,6 +6391,9 @@ div.tabsElem a.tab {
/* CSS style for debugbar */
/* ============================================================================== */
div.phpdebugbar * {
font-weight: unset;
}
span.phpdebugbar-tooltip.phpdebugbar-tooltip-extra-wide, span.phpdebugbar-tooltip.phpdebugbar-tooltip-wide {
width: 250px !important;
}
@ -6400,7 +6403,15 @@ span.phpdebugbar-tooltip.phpdebugbar-tooltip-extra-wide, span.phpdebugbar-toolti
a.phpdebugbar-tab.phpdebugbar-active {
background-image: unset !important;
}
.phpdebugbar-indicator .fa {
.phpdebugbar-fa-tags:before {
content: "\f121";
font-weight: 600 !important;
}
.phpdebugbar-fa-tasks:before {
content: "\f550";
font-weight: 600 !important;
}
.phpdebugbar-fa-tags, .phpdebugbar-fa-tasks, .phpdebugbar-indicator .fa {
font-family: "Font Awesome 5 Free";
font-weight: 600;
}