* Adjust style of the admin drop menu.

This commit is contained in:
tianshujie
2023-07-12 09:32:37 +08:00
parent fc28576e41
commit bfbdb41216
4 changed files with 39 additions and 13 deletions
+10 -9
View File
@@ -531,15 +531,16 @@ class admin extends control
{
if($this->config->vision == 'lite' and !in_array($menuKey, $this->config->admin->liteMenuList)) continue;
$data[] = array(
'id' => $menuKey,
'name' => $menuKey,
'content' => array('html' => "<div class='flex items-center my-2'><img class='mr-2' src='static/svg/admin-{$menuKey}.svg'/> {$menuGroup['name']}</div>"),
'text' => '',
'title' => $menuGroup['name'],
'type' => 'item',
'url' => $menuGroup['disabled'] ? '###' : $menuGroup['link'],
'active' => $currentMenuKey == $menuKey,
'rootClass' => 'admin-menu-item'
'id' => $menuKey,
'name' => $menuKey,
'content' => array('html' => "<div class='flex items-center my-2'><img class='mr-2' src='static/svg/admin-{$menuKey}.svg'/> {$menuGroup['name']}</div>"),
'text' => '',
'title' => $menuGroup['name'],
'type' => 'item',
'url' => $menuGroup['disabled'] ? '' : $menuGroup['link'],
'active' => $currentMenuKey == $menuKey,
'rootClass' => 'admin-menu-item',
'attrs' => array('disabled' => $menuGroup['disabled'])
);
}