From 403a836ee499e432a2457c80e19f8a4a2cc87152 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 30 Jan 2023 15:59:28 +0100 Subject: [PATCH] Adjust the icons size base on textsize preference --- pixelegg/inc/class.pixelegg_framework.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index 8b49077a65..b39509be93 100755 --- a/pixelegg/inc/class.pixelegg_framework.inc.php +++ b/pixelegg/inc/class.pixelegg_framework.inc.php @@ -123,7 +123,7 @@ class pixelegg_framework extends Api\Framework\Ajax $textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize']; if (!empty($textsize) && is_numeric($textsize) && $textsize != '12') { - $iconSize = $textsize+4; + $iconSize = $textsize+2; $ret['app_css'] .= " /* sharing @@ -143,6 +143,7 @@ class pixelegg_framework extends Api\Framework\Ajax width: {$iconSize}px !important; height: {$iconSize}px !important; } + #egw_fw_header #egw_fw_topmenu #egw_fw_topmenu_items ul a {background-position:left;background-size:{$iconSize}px} "; } if (preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$color) || preg_match('/^(#[0-9A-F]+|[A-Z]+)$/i',$loginbox_color)) // a little xss check