diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index 89d3edd144..ad3e01e0ac 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -1865,6 +1865,10 @@ class Item extends CachedModel $save = array_merge($dataModelEncode, $dataEncode); + if (!empty($save['label'])) { + $save['label'] = io_safe_output(io_safe_input(str_replace("'", "\'", $save['label']))); + } + $result = \db_process_sql_update( 'tlayout_data', $save, diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/Label.php b/pandora_console/include/rest-api/models/VisualConsole/Items/Label.php index f02e136a18..c1672f10ac 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/Label.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/Label.php @@ -90,11 +90,11 @@ final class Label extends Item // Default values. if (isset($values['width']) === false) { - $values['width'] = 10; + $values['width'] = 50; } if (isset($values['height']) === false) { - $values['height'] = 10; + $values['height'] = 50; } return $values; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 8e7a4f817c..b5875c2207 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -12240,3 +12240,8 @@ div.parent_graph > p.legend_background > table > tbody > tr { .toggle-traffic-graph { margin: 0px !important; } + +div#visual-console-container * { + font-size: unset; + line-height: unset; +}