Skip to content

Kai Code: Center the product tour sender image - #242

Merged
LucaB01 merged 3 commits into
masterfrom
kai-code/6b08169509db704ce16facf6-21ed1ad9-3aa5-4555-b41d-0beded051ee5
Nov 26, 2026
Merged

LucaB01 merged 3 commits into
masterfrom
kai-code/6b08169509db704ce16facf6-21ed1ad9-3aa5-4555-b41d-0beded051ee5

Conversation

@kai-by-gleap

@kai-by-gleap kai-by-gleap Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Root cause: The tour shows the sender photo inside a small round frame, filled edge to edge. The style never said which part of the photo to keep, so the browser kept the top-left corner. Any photo that isn't square showed its left or top edge instead of its middle.

Tip

Fix: The tour style now keeps the middle of the photo, so it sits centered in the frame like in the dashboard.

Automated changes by Kai Code.

The product tour sender avatar (.gleap-tour-sender-image) draws the profile photo as a background-size: cover background in a 32px circle, but never set background-position, so browsers used the default top left. Non-square photos were cropped to their left or top edge and looked off-center, while the dashboard shows them centered. This adds background-position: center, plus a jsdom test that injects the widget CSS and checks the computed position. Gleap ticket #230241.

🤖 Generated with Claude Code

Gleap ticket: View in Gleap

Checked by Kai Code

  • ✅ JavaScript-SDK: src/UI.tourSender.test.js fails on the base branch and passes with this change (npm test -- $KAI_TESTS)
  • ✅ typecheck (2 s)
  • ✅ test (27 s)

kai-by-gleap Bot and others added 3 commits November 26, 2026 11:25
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LucaB01
LucaB01 merged commit 3ccf766 into master Nov 26, 2026
2 checks passed
@LucaB01
LucaB01 deleted the kai-code/6b08169509db704ce16facf6-21ed1ad9-3aa5-4555-b41d-0beded051ee5 branch November 26, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants