@brushes/component-core 2.0.3 → 2.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brushes/component-core",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "main": "src/index.ts",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -201,7 +201,7 @@ export const OutContainer = (props: any) => {
201
201
  </ModuleProvider>
202
202
  );
203
203
  };
204
- export const ContainerWrap = ({ width, background, children, backgroundImage, height, $$_style = '', $_style = '', ...props }: any) => {
204
+ export const ContainerWrap = ({ width, reduceSize=110, background, children, backgroundImage, height, $$_style = '', $_style = '', ...props }: any) => {
205
205
  const {
206
206
  connectors: { connect, drag }
207
207
  } = useNode();
@@ -217,7 +217,7 @@ export const ContainerWrap = ({ width, background, children, backgroundImage, he
217
217
  width,
218
218
  paddingBottom: 5,
219
219
  background: backgroundImage ? `url(${fullpath(backgroundImage)}) repeat-x center 0` : background,
220
- minHeight: `calc(${height}vh - 110px)`
220
+ minHeight: `calc(${height}vh - ${reduceSize}px)`
221
221
  }}
222
222
  >
223
223
  <Inner root={true} enabled={enabled}>