Skip to content

Commit

Permalink
fix: icons width
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed May 19, 2023
1 parent fda7060 commit 15c02b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/unfold/templates/unfold/helpers/app_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ <h3 class="font-medium my-3 px-6 text-gray-900 text-sm first:mt-0 dark:text-gray
{% for item in group.items %}
<li>
<a href="{{ item.link }}"
class="block border border-transparent flex h-11 items-center -mx-3 px-3 py-2 rounded-md {% if item.active %}bg-gray-100 font-semibold text-primary-600 dark:border dark:border-gray-800 dark:bg-white/[.02] dark:text-primary-500{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 hover:dark:text-gray-200{% endif %}">
class="border border-transparent flex h-11 items-center -mx-3 px-3 py-2 rounded-md {% if item.active %}bg-gray-100 font-semibold text-primary-600 dark:border dark:border-gray-800 dark:bg-white/[.02] dark:text-primary-500{% else %}text-gray-500 hover:text-gray-700 dark:text-gray-400 hover:dark:text-gray-200{% endif %}">
{% if item.icon %}
<span class="material-symbols-outlined md-18 mr-3">
<span class="material-symbols-outlined md-18 mr-3 w-4.5">
{{ item.icon }}
</span>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
"width": "width",
},
width: {
"4.5": "1.125rem",
"9.5": "2.375rem",
"sidebar": "18rem",
},
Expand Down

0 comments on commit 15c02b8

Please sign in to comment.