@pdfme/ui 1.0.12 → 1.0.13

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": "@pdfme/ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "author": "hand-dot",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -277,10 +277,7 @@ const Main = (props: Props, ref: Ref<HTMLDivElement>) => {
277
277
  }}
278
278
  />
279
279
  {pageCursor !== index ? (
280
- <Mask
281
- width={paperSize.width + RULER_HEIGHT}
282
- height={paperSize.height + RULER_HEIGHT * scale}
283
- />
280
+ <Mask width={paperSize.width + RULER_HEIGHT} height={paperSize.height} />
284
281
  ) : (
285
282
  !editing && (
286
283
  <Moveable
@@ -56,7 +56,8 @@ const Paper = (porps: {
56
56
  }}
57
57
  style={{
58
58
  fontFamily: `'${getFallbackFontName(font)}'`,
59
- margin: `${RULER_HEIGHT * scale}px auto`,
59
+ top: `${RULER_HEIGHT}px`,
60
+ margin: '0 auto',
60
61
  position: 'relative',
61
62
  backgroundImage: `url(${background})`,
62
63
  backgroundSize: `${paperSize.width}px ${paperSize.height}px`,