Skip to content

Commit

Permalink
Allow for non-square logos in Navbar
Browse files Browse the repository at this point in the history
Some Logos are not "squareable", so they currently look either distorted (without user intervention) or way too small (by manually squaring it)

By loosening the width restriction, most logos, square or rectangular, will not be distorted and scaled automatically.
  • Loading branch information
psuet committed Apr 8, 2024
1 parent 1fc2e45 commit 8debd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InvenTree/templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<nav class="navbar {% if sticky %}fixed-top{% endif %} navbar-expand-lg navbar-light">
<div class="container-fluid">
<div class="navbar-header clearfix content-heading">
<a class="navbar-brand" id='logo' href="{% url 'index' %}" style="padding-top: 7px; padding-bottom: 5px;"><img src="{% inventree_logo %}" alt="{% trans 'InvenTree logo' %}" width="32" height="32" style="display:block; margin: auto;"/></a>
<a class="navbar-brand" id='logo' href="{% url 'index' %}" style="padding-top: 7px; padding-bottom: 5px;"><img src="{% inventree_logo %}" alt="{% trans 'InvenTree logo' %}" max-width="64" height="32" style="display:block; margin: auto;"/></a>
</div>
<div class="navbar-collapse collapse" id="navbar-objects">
<ul class="navbar-nav">
Expand Down

0 comments on commit 8debd12

Please sign in to comment.