Skip to content

Commit 165fc9f

Browse files
committed
fix: #231 Align menu items from sidebar
1 parent d8d8339 commit 165fc9f

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

src/app/modules/shared/components/sidebar/sidebar.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<div class="text-center my-5">
55
<img src="assets/img/ioet-logo-light.png" width="70" height="auto" class="img-fluid" alt="Ioet logo" />
66
</div>
7-
<div class="d-flex flex-column">
7+
<div class="container">
88
<a
99
*ngFor="let item of itemsSidebar"
1010
[routerLink]="item.route"
11-
routerLinkActive="background-item-sidebar-active"
12-
class="item-hover text-white p-3 text-decoration-none"
11+
routerLinkActive=""
12+
class="item-hover text-white item"
1313
>
14-
<i class="{{ item.icon }} mr-3 ml-3"></i> {{ item.text }}</a
14+
<i class="{{ item.icon }}"></i> {{ item.text }}</a
1515
>
1616
</div>
1717
</div>

src/app/modules/shared/components/sidebar/sidebar.component.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
}
3636
}
3737

38+
.container {
39+
display: grid;
40+
grid-gap: 20px;
41+
justify-content: center;
42+
align-self: center;
43+
.item {
44+
display: grid;
45+
grid-template-columns: 30px 100px;
46+
align-items: center;
47+
}
48+
}
49+
3850
@media (min-width: 768px) {
3951
#wrapper {
4052
#sidebar-wrapper {

src/app/modules/shared/components/sidebar/sidebar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class SidebarComponent implements OnInit {
1919
{ route: '/time-clock', icon: 'fas fa-clock', text: 'Time Clock' },
2020
{ route: '/time-entries', icon: 'fas fa-list-alt', text: 'Time Entries' },
2121
{ route: '/reports', icon: 'fas fa-chart-pie', text: 'Reports' },
22-
{ route: '/activities-management', icon: 'fas fa-file-alt', text: ' Activities' },
22+
{ route: '/activities-management', icon: 'fas fa-file-alt', text: 'Activities' },
2323
{ route: '/customers-management', icon: 'fas fa-user', text: 'Customers' },
2424
];
2525
}

0 commit comments

Comments
 (0)