Skip to content

Commit 294c796

Browse files
committed
Fixed ugly arrow appearance in admin sidebar.
1 parent f16a6f1 commit 294c796

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

public/admin_styles.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (C) 2020 Jan Böhmer
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as published
6+
* by the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
18+
.treeview .treeview-icon {
19+
position: unset;
20+
}

src/Controller/Admin/DashboardController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use App\Entity\Department;
2323
use App\Entity\PaymentOrder;
2424
use App\Entity\User;
25+
use EasyCorp\Bundle\EasyAdminBundle\Config\Assets;
2526
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
2627
use EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard;
2728
use EasyCorp\Bundle\EasyAdminBundle\Config\Menu\CrudMenuItem;
@@ -150,4 +151,9 @@ public function configureUserMenu(UserInterface $user): UserMenu
150151
MenuItem::linktoRoute(Languages::getName('en', 'en') . ' (EN)', '', 'admin_dashboard.en'),
151152
]);
152153
}
154+
155+
public function configureAssets(): Assets
156+
{
157+
return Assets::new()->addCssFile('admin_styles.css');
158+
}
153159
}

0 commit comments

Comments
 (0)