From 193a03291cdeea662eca29e56719e11f292bf231 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 14 Aug 2024 19:14:17 -0600 Subject: [PATCH] Update content.php - Use vertical align for short text and align top for larger amounts of text. - Adjust values for a row spand of 1, 2, or 3 for height and max-height --- core/dashboard/resources/dashboard/content.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/dashboard/resources/dashboard/content.php b/core/dashboard/resources/dashboard/content.php index 50e112f3c0..daec932471 100644 --- a/core/dashboard/resources/dashboard/content.php +++ b/core/dashboard/resources/dashboard/content.php @@ -8,11 +8,17 @@ $language = new text; $text = $language->get($_SESSION['domain']['language']['code'], 'core/dashboard'); +//prepare the settings + $dashboard_content_length = strlen($dashboard_content); + $dashboard_content_text_vertical_align = 'top'; + if ($dashboard_content_length < 30) { $dashboard_content_text_vertical_align = 'middle'; } + $dashboard_content_height = $dashboard_row_span * 120 . 'px'; + //dashboard icon echo "
\n"; echo "
\n"; echo " ".escape($dashboard_name).""; - echo " ".str_replace("\r", '
', escape($dashboard_content))."
\n"; + echo " ".str_replace("\r", '
', escape($dashboard_content))."
\n"; echo "
\n"; if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") { echo "
".str_replace("\r", '
', escape($dashboard_content_details))."
\n";