|
@@ -22,7 +22,7 @@ export default class Poster {
|
|
|
|
|
|
fontSize = fontSize.replace("px", "");
|
|
|
fontSize = Math.ceil(Number(fontSize) * pixelRatio) + "px";
|
|
|
- top = Math.ceil(top * pixelRatio);
|
|
|
+ top = Math.ceil((top >= 2000 ? top - 2000 : top) * pixelRatio);
|
|
|
left = Math.ceil(left * pixelRatio);
|
|
|
if (pixelRatio > 3) {
|
|
|
// 曲面屏做适配
|
|
@@ -100,6 +100,7 @@ export default class Poster {
|
|
|
fontWeight: `${fontWeight}`,
|
|
|
backgroundColor: `${backgroundColor}`,
|
|
|
borderRadius: `${borderRadius}`,
|
|
|
+ maxLines: 3,
|
|
|
},
|
|
|
});
|
|
|
break;
|