diff --git a/docs/open-api-docs.yaml b/docs/open-api-docs.yaml
index 9f9dda25..e41b8cb3 100644
--- a/docs/open-api-docs.yaml
+++ b/docs/open-api-docs.yaml
@@ -2,7 +2,7 @@ openapi: 3.0.3
info:
title: The Agent's user-facing API
description: The user-facing parts of The Agent's API service (excluding system-level endpoints, chat completion, maintenance endpoints, etc.)
- version: 5.16.0
+ version: 5.16.1
license:
name: MIT
url: https://opensource.org/licenses/MIT
diff --git a/pyproject.toml b/pyproject.toml
index 5f6370d2..4b531afe 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "the-agent"
-version = "5.16.0"
+version = "5.16.1"
[tool.setuptools]
package-dir = {"" = "src"}
diff --git a/src/features/social_cards/card_layout.py b/src/features/social_cards/card_layout.py
index e54da2c5..4fb34091 100644
--- a/src/features/social_cards/card_layout.py
+++ b/src/features/social_cards/card_layout.py
@@ -6,7 +6,8 @@
PHOTO_GAP = 4 # gap between stacked photos
AVATAR_SIZE = 64
AVATAR_GAP = 16 # gap between avatar and name column
-LOGO_SIZE = 40
+LOGO_SIZE = 32
+LOGO_CIRCLE_R = 26
X_ICON_SIZE = 12 # footer X/Twitter icon
HEADER_HEIGHT = AVATAR_SIZE + CARD_INNER_PAD
DIVIDER_OPACITY = 0.2
diff --git a/src/features/social_cards/card_template.py b/src/features/social_cards/card_template.py
index ded00054..64d343a1 100644
--- a/src/features/social_cards/card_template.py
+++ b/src/features/social_cards/card_template.py
@@ -24,6 +24,7 @@
FONT_SIZE_NAME,
FOOTER_OPACITY,
LINE_HEIGHT_BODY,
+ LOGO_CIRCLE_R,
LOGO_SIZE,
PHOTO_CORNER_RADIUS,
PHOTO_GAP,
@@ -400,11 +401,23 @@ def _name_segments(text: str) -> list[tuple[str, str, str, bool]]:
f'fill="{theme.text_color}" fill-opacity="0.7">{dt_str}',
)
- # Agent logo (top-right)
- logo_x = cx + card_width - CARD_INNER_PAD - LOGO_SIZE
- logo_y = y + (AVATAR_SIZE - LOGO_SIZE) // 2
+ # Agent logo (top-right) with contrast circle
+ logo_cx = cx + card_width - CARD_INNER_PAD - LOGO_CIRCLE_R
+ logo_cy = y + AVATAR_SIZE // 2
logo_key = _agent_logo_key(theme)
logo_b64 = _logo_svg_b64(logo_key)
+ if logo_key == "agent_logo_color":
+ content.append(
+ f'',
+ )
+ else:
+ content.append(
+ f'',
+ )
+ logo_x = logo_cx - LOGO_SIZE // 2
+ logo_y = logo_cy - LOGO_SIZE // 2 - round(LOGO_SIZE * 0.05)
logo_opacity = ' opacity="0.8"' if logo_key != "agent_logo_color" else ""
content.append(
f'',