Open denkstream opened 2 years ago
What about just using
<i class="<?= $page->icon() ?> fa-fw"></i>
?
Or do you mean having an option in the plugin UI?
What about just using
<i class="<?= $page->icon() ?> fa-fw"></i>
?
Or do you mean having an option in the plugin UI?
Yupp - UI option would be excellent for the not so tech savvy users :-)
I'm not sure I understand the use case.
<i class="<?= $page->icon() ?> fa-fw"></i>
is what you would write in the template, and it's up to you (the designer / developer) to choose whether an icon in a certain spot should be fixed width or height.
IMHO, the user in the panel shouldn't have a choice about how an icon is placed into the layout. I mean it probably depends on whether you want several icons to align vertically or horizontally, letting the user decide if an icon is fa-fw
or not just adds an opportunity to let him choose the wrong one, or am I missing something?
Is there a possibility to add an option to have fixed-width icons? Usualy its enough to have fa-fw added to class like
<i class="fas fa-envelope-open-text fa-fw"></i>