dify icon indicating copy to clipboard operation
dify copied to clipboard

react_flow watermark icon displaying problem: transparency ?

Open sheepwang91 opened this issue 8 months ago • 3 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.4.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The icon is in the bottom right corner of chatflow or workflow section.

#1. The react-flow watermark in darkmode:

Image

#2. The react-flow watermark in lightmode:

Image

#3.After changing the font size, it can be seen more clearly. This issue can be resolved by switching the background fill or adjusting its transparency. The problem exists in both light and dark modes. :D

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

sheepwang91 avatar May 20 '25 07:05 sheepwang91

Hello @sheepwang91! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you on your journey to becoming a contributor. I'm here while you wait for a human maintainer. Let's tackle your issue together!

The issue you're experiencing with the React Flow watermark's transparency in both light and dark modes might be related to the CSS settings applied to the component. Unfortunately, I couldn't find specific details about the CSS for the React Flow watermark in the Dify codebase. However, you can try inspecting the CSS styles applied to the React Flow component using browser developer tools to identify any transparency or background fill settings that might be causing the issue.

If adjusting the font size improves visibility, you might want to look into modifying the CSS directly to set a more appropriate font size or background fill for better contrast. You can also check if there are any configuration options available within the React Flow component setup in the web/app/components/workflow/index.tsx file, where the component is integrated and configured [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar May 20 '25 07:05 dosubot[bot]

How about using CSS variables to set the text's color

Image

light:

Image

dark:

Image

HyaCiovo avatar May 20 '25 09:05 HyaCiovo

How about using CSS variables to set the text's color

...

seems --color-text-secondary is more clear :P

Image

Image

HyaCiovo avatar May 20 '25 09:05 HyaCiovo

How about using CSS variables to set the text's color ...

seems --color-text-secondary is more clear :P

Image

Image

I have removed the background, since the border is not rounded,I feel a little bit weird.

crazywoola avatar May 21 '25 02:05 crazywoola