diff --git a/htdocs/debugbar/class/DataCollector/DolMemoryCollector.php b/htdocs/debugbar/class/DataCollector/DolMemoryCollector.php index b6525633481..6ec58ea6720 100644 --- a/htdocs/debugbar/class/DataCollector/DolMemoryCollector.php +++ b/htdocs/debugbar/class/DataCollector/DolMemoryCollector.php @@ -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)) ); } diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 80c836d427b..4285749aeab 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -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; }