mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Remove space characters from in-between list items
They were causing some weirdness with spacing between redraws.
This commit is contained in:
parent
c3dfa3560a
commit
a380424de4
5
js/admin/dist/app.js
vendored
5
js/admin/dist/app.js
vendored
|
@ -20965,15 +20965,12 @@ System.register('flarum/helpers/listItems', ['flarum/components/Separator', 'fla
|
|||
item.attrs.key = item.attrs.key || item.itemName;
|
||||
}
|
||||
|
||||
var space = new String(' ');
|
||||
space.attrs = { key: '_space_' + item.itemName };
|
||||
|
||||
return [isListItem ? item : m(
|
||||
'li',
|
||||
{ className: classList([item.itemName ? 'item-' + item.itemName : '', className, active ? 'active' : '']),
|
||||
key: item.itemName },
|
||||
item
|
||||
), space];
|
||||
)];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
5
js/forum/dist/app.js
vendored
5
js/forum/dist/app.js
vendored
|
@ -28327,15 +28327,12 @@ System.register('flarum/helpers/listItems', ['flarum/components/Separator', 'fla
|
|||
item.attrs.key = item.attrs.key || item.itemName;
|
||||
}
|
||||
|
||||
var space = new String(' ');
|
||||
space.attrs = { key: '_space_' + item.itemName };
|
||||
|
||||
return [isListItem ? item : m(
|
||||
'li',
|
||||
{ className: classList([item.itemName ? 'item-' + item.itemName : '', className, active ? 'active' : '']),
|
||||
key: item.itemName },
|
||||
item
|
||||
), space];
|
||||
)];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -39,9 +39,6 @@ export default function listItems(items) {
|
|||
item.attrs.key = item.attrs.key || item.itemName;
|
||||
}
|
||||
|
||||
const space = new String(' ');
|
||||
space.attrs = {key: '_space_'+item.itemName};
|
||||
|
||||
return [
|
||||
isListItem
|
||||
? item
|
||||
|
@ -52,8 +49,7 @@ export default function listItems(items) {
|
|||
])}
|
||||
key={item.itemName}>
|
||||
{item}
|
||||
</li>,
|
||||
space
|
||||
</li>
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
> li {
|
||||
display: inline;
|
||||
margin-right: 7px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user