Skip to content

Commit 958117f

Browse files
style: reduce watermark padding (40px → 25px for images, 12px → 10px for HTML)
1 parent e74ae0b commit 958117f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def create_thumbnail(input_path: str | Path, output_path: str | Path, width: int
7777

7878

7979
def add_watermark(
80-
input_path: str | Path, output_path: str | Path, spec_id: str | None = None, font_size: int = 48, padding: int = 40
80+
input_path: str | Path, output_path: str | Path, spec_id: str | None = None, font_size: int = 48, padding: int = 25
8181
) -> None:
8282
"""Add pyplots.ai branded watermark to an image.
8383
@@ -259,7 +259,7 @@ def add_html_watermark(html_content: str, spec_id: str) -> str:
259259
.pyplots-watermark {
260260
display: flex;
261261
justify-content: space-between;
262-
padding: 12px 20px;
262+
padding: 10px 15px;
263263
font-family: 'JetBrains Mono', monospace;
264264
font-weight: 700;
265265
font-size: 14px;

0 commit comments

Comments
 (0)