mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 23:59:57 +08:00
Unify icon class name, change the way icons are floated in menus
This commit is contained in:
@ -5,7 +5,7 @@ export default class NavItem extends Component {
|
||||
view() {
|
||||
var active = NavItem.active(this.props);
|
||||
return m('li'+(active ? '.active' : ''), m('a', {href: this.props.href, config: m.route}, [
|
||||
icon(this.props.icon),
|
||||
icon(this.props.icon+' icon'),
|
||||
this.props.label, ' ',
|
||||
m('span.count', this.props.badge)
|
||||
]))
|
||||
|
Reference in New Issue
Block a user