AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

[BUG] v4.x main sidebar icon, text spacing

Open umer936 opened this issue 3 years ago • 4 comments

We've been using the 4.x branch of AdminLTE and found that on the sidebar, the icon does not keep a fixed width. This means icons of different sizes make the link text not be aligned. I was able to trace it to this CSS property that is in AdminLTE 3.1 (main-sidebar.scss:123), but not in AdminLTE 4:

.nav-sidebar > .nav-item .nav-icon {
    width: 1.6rem;
}

I went ahead and added it to my own CSS file, but it should probably be in the main-sidebar.scss (or nav-sidebar.scss) file for AdminLTE 4.

umer936 avatar Dec 14 '21 17:12 umer936

It looks like it could go in nav-sidebar.scss:34. I can make a PR if that's where it should go.

umer936 avatar Dec 14 '21 17:12 umer936

PR are always welcome 😃

danny007in avatar Dec 19 '21 12:12 danny007in

is this issue still exist ?

danny007in avatar Feb 09 '23 08:02 danny007in

Good question - I forgot about this. I haven't updated to the latest v4 / latest Bootstrap to see if it still requires that css property. I'll see if I can get to that before next week.

umer936 avatar Feb 09 '23 14:02 umer936