rasteiner / k3-awesome-picker

Kirby 4 field plugin to show and select a free Font Awesome icon.
MIT License
15 stars 0 forks source link

Option to have a fixed width #15

Open denkstream opened 2 years ago

denkstream commented 2 years ago

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>

rasteiner commented 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?

denkstream commented 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?

Yupp - UI option would be excellent for the not so tech savvy users :-)

rasteiner commented 2 years ago

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?