labellife-design-tool 2.1.8 → 2.2.0

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.
@@ -1225,7 +1225,9 @@ var DefaultDownloadButton = mobxReactLite.observer(function (_ref9) {
1225
1225
  _useState6 = _slicedToArray(_useState5, 2),
1226
1226
  fileType = _useState6[0],
1227
1227
  setFileType = _useState6[1];
1228
- var _useState7 = React.useState(1),
1228
+ // Default quality so pixelRatio=1 (output = template's own pixel size).
1229
+ // qualityToPixelRatio(q) = q * 3, so q = 1/3 → pixelRatio = 1.
1230
+ var _useState7 = React.useState(1 / 3),
1229
1231
  _useState8 = _slicedToArray(_useState7, 2),
1230
1232
  quality = _useState8[0],
1231
1233
  setQuality = _useState8[1];
@@ -1596,7 +1598,7 @@ var Toolbar = mobxReactLite.observer(function (_ref11) {
1596
1598
  children: [/*#__PURE__*/jsxRuntime.jsxs(material.Box, {
1597
1599
  sx: _objectSpread2(_objectSpread2({}, rowSx), {}, {
1598
1600
  minHeight: 52,
1599
- borderBottom: element ? '1px solid #f0f0f0' : 'none'
1601
+ borderBottom: '1px solid #f0f0f0'
1600
1602
  }),
1601
1603
  children: [/*#__PURE__*/jsxRuntime.jsx(material.Tooltip, {
1602
1604
  title: t('toolbar.undo', 'Undo'),
@@ -1709,12 +1711,13 @@ var Toolbar = mobxReactLite.observer(function (_ref11) {
1709
1711
  }), DownloadButton && /*#__PURE__*/jsxRuntime.jsx(DownloadButton, {
1710
1712
  store: store
1711
1713
  })]
1712
- }), element && /*#__PURE__*/jsxRuntime.jsx(material.Box, {
1714
+ }), /*#__PURE__*/jsxRuntime.jsx(material.Box, {
1713
1715
  sx: _objectSpread2(_objectSpread2({}, rowSx), {}, {
1714
1716
  minHeight: 44,
1715
- backgroundColor: '#fafafa'
1717
+ backgroundColor: '#fafafa',
1718
+ visibility: element ? 'visible' : 'hidden'
1716
1719
  }),
1717
- children: /*#__PURE__*/jsxRuntime.jsx(CommonControls, {
1720
+ children: element && /*#__PURE__*/jsxRuntime.jsx(CommonControls, {
1718
1721
  element: element,
1719
1722
  store: store
1720
1723
  })