ywana-core8 0.0.688 → 0.0.689
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +4 -1
package/package.json
CHANGED
@@ -65,6 +65,9 @@ export const CollectionPage = (props) => {
|
|
65
65
|
|
66
66
|
const total = all ? all.length : 0
|
67
67
|
const title2 = <><span className="size">{total}</span> {title}</>
|
68
|
+
|
69
|
+
const hiddenStyle = pageContext.selection ? "hidden" : {}
|
70
|
+
|
68
71
|
return (
|
69
72
|
<Fragment>
|
70
73
|
<Header className={`collection-page ${className}`} title={<Text>{title2}</Text>}>
|
@@ -73,7 +76,7 @@ export const CollectionPage = (props) => {
|
|
73
76
|
<Button icon="refresh" label="Reload" action={reload} />
|
74
77
|
{renderActions()}
|
75
78
|
</Header>
|
76
|
-
<menu className={`collection-page ${className}`}>
|
79
|
+
<menu className={`collection-page ${className} ${hiddenStyle}`}>
|
77
80
|
{canFilter ? <CollectionFilters schema={schema} /> : null}
|
78
81
|
{levels ? <CollectionTree schema={schema} icon={icon} levels={levels} onSelect={onSelect} sorter={sorter} searchBy={searchBy} namer={namer} /> : <CollectionList groupBy={groupBy} onSelect={onSelect} searchBy={searchBy} />}
|
79
82
|
</menu>
|