Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal Layout navbar icons are too down, out of line with text #163

Closed
rizkytegar opened this issue Oct 14, 2022 · 2 comments
Closed

Comments

@rizkytegar
Copy link

I use Horizontal Layout, but I think the icon is less attractive because it doesn't align with the text.

Then I moved the tag (bootstrap icon) into the tag

Default mazer

<li class="menu-item ">
    <a href="index.html" class='menu-link'>
        <i class="bi bi-grid-fill"></i><span>Dashboard</span>
    </a>
</li>

my code

<li class="menu-item ">
    <a href="index.html" class='menu-link'>
        <span><i class="bi bi-grid-fill"></i> Dashboard</span>
    </a>
</li>

Desktop

left is my code, right is mazer

L ayout Horizontal - Mazer Admin Dashboard (1)

Mobile

Layout Horizontal - Mazer Admin Dashboard

any references or suggestions to align the icon with the text ? . I don't really understand about the front end

@rizkytegar
Copy link
Author

How about like this?

 <li class="menu-item">
    <a href="/" class='menu-link'>
        <i class="bi bi-grid-fill minus"></i><span>Dashboard</span>
    </a>
</li>
<style>
    .minus{
        margin-top:-11px
    }
</style>

it is quite accurate, including in the mobile version

Layout Horizontal - Mazer Admin Dashboard (1)

@zuramai
Copy link
Owner

zuramai commented Oct 15, 2022

Can you make a pull request out of it? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants