mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 05:47:50 -05:00
[PR #21272] [CLOSED] enh.: Allow to disable icon inversion #80877
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21272
Author: @Classic298
Created: 2/9/2026
Status: ❌ Closed
Base:
dev← Head:patch-4📝 Commits (4)
2f0784fUpdate ResponseMessage.svelte7a1afddUpdate ResponseMessage.sveltea51431eUpdate ResponseMessage.svelte3790084Update ResponseMessage.svelte📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+3 -1)📄 Description
Problem
Icons were being inverted in dark mode based on whether the string
svgappeared anywhere in the icon URL. This caused PNG icons to randomly
get inverted if their base64 encoding happened to contain "svg" by coincidence.
Solution
icon_dark_invertfrontmatter property for actionsicon_dark_invert: true/falseif defined in docstringstartsWith('data:image/svg'))instead of
.includes('svg')Usage
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.