Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(frontend): :wrench: add privacy policy spaces (#4277)

Patryk Garstecki370e1c1a17d0
diff --git a/web/app/components/base/chat/chat-with-history/config-panel/index.tsx b/web/app/components/base/chat/chat-with-history/config-panel/index.tsx
index cf12b35d086..f49dcbab00a 100644
--- a/web/app/components/base/chat/chat-with-history/config-panel/index.tsx
+++ b/web/app/components/base/chat/chat-with-history/config-panel/index.tsx
@@ -134,7 +134,7 @@ const ConfigPanel = () => {
{site?.privacy_policy
? <div className={`flex items-center ${isMobile && 'w-full justify-end'}`}>{t('share.chat.privacyPolicyLeft')}
<a
- className='text-gray-500'
+ className='text-gray-500 px-1'
href={site?.privacy_policy}
target='_blank' rel='noopener noreferrer'>{t('share.chat.privacyPolicyMiddle')}</a>
{t('share.chat.privacyPolicyRight')}
diff --git a/web/app/components/share/chat/welcome/index.tsx b/web/app/components/share/chat/welcome/index.tsx
index 6c431362dc4..adc58d8a638 100644
--- a/web/app/components/share/chat/welcome/index.tsx
+++ b/web/app/components/share/chat/welcome/index.tsx
@@ -357,7 +357,7 @@ const Welcome: FC<IWelcomeProps> = ({
{siteInfo.privacy_policy
? <div>{t('share.chat.privacyPolicyLeft')}
<a
- className='text-gray-500'
+ className='text-gray-500 px-1'
href={siteInfo.privacy_policy}
target='_blank' rel='noopener noreferrer'>{t('share.chat.privacyPolicyMiddle')}</a>
{t('share.chat.privacyPolicyRight')}
diff --git a/web/app/components/share/chatbot/welcome/index.tsx b/web/app/components/share/chatbot/welcome/index.tsx
index 0cf12988736..240271d3b54 100644
--- a/web/app/components/share/chatbot/welcome/index.tsx
+++ b/web/app/components/share/chatbot/welcome/index.tsx
@@ -358,7 +358,7 @@ const Welcome: FC<IWelcomeProps> = ({
{siteInfo.privacy_policy
? <div>{t('share.chat.privacyPolicyLeft')}
<a
- className='text-gray-500'
+ className='text-gray-500 px-1'
href={siteInfo.privacy_policy}
target='_blank' rel='noopener noreferrer'>{t('share.chat.privacyPolicyMiddle')}</a>
{t('share.chat.privacyPolicyRight')}
diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsx
index 1a88fcddd4f..21ff2b051ae 100644
--- a/web/app/components/share/text-generation/index.tsx
+++ b/web/app/components/share/text-generation/index.tsx
@@ -618,7 +618,7 @@ const TextGeneration: FC<IMainProps> = ({
<div>·</div>
<div>{t('share.chat.privacyPolicyLeft')}
<a
- className='text-gray-500'
+ className='text-gray-500 px-1'
href={siteInfo.privacy_policy}
target='_blank' rel='noopener noreferrer'>{t('share.chat.privacyPolicyMiddle')}</a>
{t('share.chat.privacyPolicyRight')}