mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
Only give dropdown menu items padding if they have an icon
This commit is contained in:
@ -13,7 +13,7 @@ export default class ActionButton extends Component {
|
||||
delete attrs.label;
|
||||
|
||||
attrs.href = attrs.href || 'javascript:;';
|
||||
return m('a', attrs, [
|
||||
return m('a'+(iconName ? '.has-icon' : ''), attrs, [
|
||||
iconName ? icon(iconName+' icon') : '',
|
||||
m('span.label', label)
|
||||
]);
|
||||
|
Reference in New Issue
Block a user