Bake background color/gradient into saved Avatar Creator avatar SVG

Fixkamo-internal
Name
lúc 20:10 11 tháng 3, 2026 UTC
Tác giả
kamo
Cam kết
6cec35e

Avatar Creator generates transparent-background SVGs by default. The background was only applied as a CSS wrapper on the preview container, so the stored MinIO file had no background and avatars appeared transparent everywhere outside the Create Avatar dialog (chat heads, member lists, header, etc.). Adds addBackgroundToSvg() which injects a <rect> (solid) or <linearGradient>+<rect> (gradient) as the first child of the <svg> element before the file is uploaded. The background rx matches the Avatar Creator radius option so rounded corners stay consistent. Applied to both the create and edit paths so editing an avatar also re-uploads the corrected SVG.

Mọi thay đổi

Như những gì anh thấy vận chuyển?

Mỗi một bản cập nhật này đều được tự động cập nhật trong không gian làm việc của bạn. Bắt đầu tự do và xem nó lớn lên tuần này qua tuần khác.

Bắt đầu tự do mãi mãiXem truy cập