[PR #1172] [MERGED] fix: Improved fallback solution for avatar image loading failure #22930

Closed
opened 2026-02-21 20:20:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/1172
Author: @CoolBoyLeo
Created: 9/13/2023
Status: Merged
Merged: 9/14/2023
Merged by: @crazywoola

Base: mainHead: main


📝 Commits (1)

  • 6385c18 fix: Improved fallback solution for avatar image loading failure

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 web/app/components/base/avatar/index.tsx (+8 -1)

📄 Description

若头像图片显示异常,将自动回退至文本模式。
If the image displays abnormally, it will automatically revert to text mode.

image

修改前 before

image

修改后 after


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify/pull/1172 **Author:** [@CoolBoyLeo](https://github.com/CoolBoyLeo) **Created:** 9/13/2023 **Status:** ✅ Merged **Merged:** 9/14/2023 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`6385c18`](https://github.com/langgenius/dify/commit/6385c187ab51bf2bc8133d642ba0b6bfe3adc239) fix: Improved fallback solution for avatar image loading failure ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `web/app/components/base/avatar/index.tsx` (+8 -1) </details> ### 📄 Description 若头像图片显示异常,将自动回退至文本模式。 If the image displays abnormally, it will automatically revert to text mode. <img width="1926" alt="image" src="https://github.com/langgenius/dify/assets/38089200/c5dda307-bd18-422e-8e9e-a060c7a3b13c"> > 修改前 before <img width="1913" alt="image" src="https://github.com/langgenius/dify/assets/38089200/cb04a687-8ae5-4e99-a43e-dac25e944159"> > 修改后 after --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 20:20:04 -05:00
yindo closed this issue 2026-02-21 20:20:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22930