mirror of
https://github.com/flarum/framework.git
synced 2025-05-28 19:06:35 +08:00
Tweak how discussion sidebar displays on mobile
Give all items in an item list a class on their <li>. Super helpful for styling
This commit is contained in:
@ -17,5 +17,5 @@ export default function listItems(array, noWrap) {
|
||||
}
|
||||
});
|
||||
|
||||
return newArray.map(item => [(noWrap && !isSeparator(item)) ? item : m('li', {className: item.wrapperClass || (item.props && item.props.wrapperClass) || (item.component && item.component.wrapperClass) || ''}, item), ' ']);
|
||||
return newArray.map(item => [(noWrap && !isSeparator(item)) ? item : m('li', {className: 'item-'+item.itemName+' '+(item.wrapperClass || (item.props && item.props.wrapperClass) || (item.component && item.component.wrapperClass) || '')}, item), ' ']);
|
||||
};
|
||||
|
Reference in New Issue
Block a user