watermark pos

This commit is contained in:
Julian Freeman
2026-01-19 00:27:47 -04:00
parent f34021eae1
commit de0ed2bdc2
4 changed files with 27 additions and 19 deletions

View File

@@ -157,8 +157,8 @@ const onMouseLeave = () => {
transform: 'translate(-50%, -50%)',
opacity: store.watermarkSettings.opacity,
color: store.watermarkSettings.color,
/* Scale based on min-dimension of the IMAGE, not window */
fontSize: (Math.min(imageRect.width, imageRect.height) * store.watermarkSettings.scale) + 'px',
/* Scale based on HEIGHT of the IMAGE */
fontSize: (imageRect.height * store.watermarkSettings.scale) + 'px',
height: '0px',
display: 'flex',
alignItems: 'center',