diff --git a/components/LayoutStudio.tsx b/components/LayoutStudio.tsx
index f608ddb..6379b0b 100644
--- a/components/LayoutStudio.tsx
+++ b/components/LayoutStudio.tsx
@@ -87,12 +87,16 @@ function watermarkOverlayStyle(
position: WatermarkPosition,
offsetX: number,
offsetY: number,
+ sizedBox = false,
): CSSProperties {
const base: CSSProperties = {
position: "absolute",
- maxWidth: "32%",
+ maxWidth: `${WATERMARK_WIDTH_FRACTION * 100}%`,
pointerEvents: "none",
zIndex: 5,
+ ...(sizedBox
+ ? { width: `${WATERMARK_WIDTH_FRACTION * 100}%` }
+ : null),
};
const ox = `${offsetX}px`;
const oy = `${offsetY}px`;
@@ -347,8 +351,14 @@ export function LayoutStudio({
);
const wmOverlay = useMemo(
- () => watermarkOverlayStyle(W.position, W.offsetX, W.offsetY),
- [W.position, W.offsetX, W.offsetY],
+ () =>
+ watermarkOverlayStyle(
+ W.position,
+ W.offsetX,
+ W.offsetY,
+ W.mode === "default" || W.mode === "logo",
+ ),
+ [W.position, W.offsetX, W.offsetY, W.mode],
);
const textFontStyle = useMemo(
@@ -569,16 +579,14 @@ export function LayoutStudio({
) : W.mode === "logo" && logoPreviewUrl ? (
// eslint-disable-next-line @next/next/no-img-element
) : W.mode === "text" ? (