0
In my navbar, I have a login button, which wanted to align right, float, align-items and text-align does not work, how could I do that?
And when you’re not logged in (https://awme.herokuapp.com )it’s all aligned, but when I log in with Discord, it shows the avatar and shuts down The image is 30x30
The [html-jinja2] code of my navbar (cutting some parts) is like this:
<header class="header ">
<nav class="navbar-expand-md navbar navbar-dark">
<a href="/" class="navbar-brand"><img src="/static/img/awme_logo.png?size=100" alt="Awme" title="Início"></a>
<button class="navbar-toggler menu-i" data-toggle="collapse" data-target="#HeaderNavbar" onclick="this.classList.toggle('active')">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="HeaderNavbar">
<ul class="navbar-nav">
<li class="nav-item"><a href="/commands/" class="nav-link"><i class="fas fa-terminal"></i> Comandos</a></li>
<li class="nav-item"><a href="/about/" class="nav-link"><i class="fas fa-robot"></i> Sobre</a></li>
<li class="nav-item"><a href="/invite/" class="nav-link" target="_blank"><i class="fab fa-discord"></i> Convite</a></li>
<li class="nav-item {% if logged %}dropdown{% endif %}">
{% if logged %}
<a href="#" id="user_dropdown" role="button" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img class='user-avatar' src='https://cdn.discordapp.com/avatars/{{ user["id"] }}/{{ user["avatar"] }}.webp'> {{ user["username"] }}</a>
<div class="dropdown-menu bg-dark" aria-labelledby="user_dropdown">
<a class="nav-link" href="/api/logout" class="dropdown-item"><i class="fas fa-sign-out-alt"></i> Deslogar</a>
</div>
{% else %}
<a class="nav-link" href="{{ login_url }}"><i class="fas fa-sign-in-alt"></i> Logar</a>
{% endif %}
</li>
</ul>
</div>
</nav>
<div class="head_sep"></div>
</header>