Skip to content

Commit

Permalink
Use svg icons for admin menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 12, 2024
1 parent acad30d commit 66aba31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
17 changes: 0 additions & 17 deletions assets/stylesheets/tags.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
#admin-menu a.additional-tags::before {
font-family: 'Font Awesome 5 Free';
font-size: 1.2em;
font-weight: 900;
content: '\f02c'; /* fas fa-tags */
padding-right: 4px;
}

#admin-menu a.additional-tags {
padding-left: 0;
}

/* Mobile menu style FontAwesome icon */
.flyout-is-active #admin-menu li a.additional-tags {
padding-left: 8px !important;
}

ul.tags {
list-style: none;
padding: 0;
Expand Down
4 changes: 3 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
menu :admin_menu,
:additional_tags,
{ controller: 'settings', action: 'plugin', id: 'additional_tags' },
caption: :field_tags
caption: :field_tags,
plugin: 'additionals',
icon: 'tags'
end

RedminePluginKit::Loader.persisting { loader.load_model_hooks! }

0 comments on commit 66aba31

Please # to comment.