mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-24 18:23:07 +08:00
fix: change chatbot avart to dify icon (#571)
This commit is contained in:
22
web/app/components/share/chatbot/icons/dify-header.svg
Normal file
22
web/app/components/share/chatbot/icons/dify-header.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 52 KiB |
11
web/app/components/share/chatbot/icons/dify.svg
Normal file
11
web/app/components/share/chatbot/icons/dify.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 52 KiB |
@@ -552,6 +552,10 @@ const Main: FC<IMainProps> = ({
|
||||
)
|
||||
}
|
||||
|
||||
const difyIcon = (
|
||||
<div className={s.difyHeader}></div>
|
||||
)
|
||||
|
||||
if (appUnavailable)
|
||||
return <AppUnavailable isUnknwonReason={isUnknwonReason} />
|
||||
|
||||
@@ -562,7 +566,8 @@ const Main: FC<IMainProps> = ({
|
||||
<div>
|
||||
<Header
|
||||
title={siteInfo.title}
|
||||
icon={siteInfo.icon || ''}
|
||||
icon=''
|
||||
customerIcon={difyIcon}
|
||||
icon_background={siteInfo.icon_background}
|
||||
isEmbedScene={true}
|
||||
isMobile={isMobile}
|
||||
@@ -624,6 +629,7 @@ const Main: FC<IMainProps> = ({
|
||||
suggestionList={suggestQuestions}
|
||||
displayScene='web'
|
||||
isShowSpeechToText={speechToTextConfig?.enabled}
|
||||
answerIconClassName={s.difyIcon}
|
||||
/>
|
||||
</div>
|
||||
</div>)
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
.installedApp {
|
||||
height: calc(100vh - 74px);
|
||||
}
|
||||
|
||||
.difyIcon {
|
||||
background-image: url(./icons/dify.svg);
|
||||
}
|
||||
|
||||
.difyHeader {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: url(./icons/dify-header.svg) center center no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
@@ -307,7 +307,7 @@ const Welcome: FC<IWelcomeProps> = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='relative mobile:min-h-[48px] tablet:min-h-[64px]'>
|
||||
<div className='relative tablet:min-h-[64px]'>
|
||||
{/* {hasSetInputs && renderHeader()} */}
|
||||
<div className='mx-auto pc:w-[794px] max-w-full mobile:w-full px-3.5'>
|
||||
{/* Has't set inputs */}
|
||||
|
||||
Reference in New Issue
Block a user