Skip to content

Commit

Permalink
Style sortable list; fix content picker exclude items
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Feb 16, 2021
1 parent 819a6ec commit 1032fe0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion components/ContentPicker/SortableList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import PickedItem from './PickedItem';
const SortableList = SortableContainer(({ items, isOrderable, handleItemDelete, mode }) => {
const ItemComponent = isOrderable ? SortableElement(PickedItem) : PickedItem;
return (
<div>
<div style={{
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif'
}}>
{items.map((item, index) => (
<ItemComponent
isOrderable={isOrderable && items.length > 1 ? isOrderable : false}
Expand Down
4 changes: 2 additions & 2 deletions components/ContentPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ContentPicker = ({
onPickChange(newContent);

setContent(newContent);
}
}

function handleItemDelete(item, sortIndex) {
const newContent = [...content];
Expand Down Expand Up @@ -93,7 +93,7 @@ const ContentPicker = ({
return (
<div className={`${NAMESPACE}`}>
{!content.length || (content.length && content.length < maxContentItems) ? (
<ContentSearch excludeItem={excludeItems} onSelectItem={handleSelect} />
<ContentSearch excludeItems={excludeItems} onSelectItem={handleSelect} />
) : null}
{content.length ? (
<StyleWrapper>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.1.3",
"version": "1.1.4",
"description": "10up Components built for the WordPress Block Editor.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1032fe0

Please sign in to comment.