mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: Do not show the toggle button for chat input when all input hidden (#26826)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
@ -36,6 +36,7 @@ const Header: FC<IHeaderProps> = ({
|
|||||||
appData,
|
appData,
|
||||||
currentConversationId,
|
currentConversationId,
|
||||||
inputsForms,
|
inputsForms,
|
||||||
|
allInputsHidden,
|
||||||
} = useEmbeddedChatbotContext()
|
} = useEmbeddedChatbotContext()
|
||||||
|
|
||||||
const isClient = typeof window !== 'undefined'
|
const isClient = typeof window !== 'undefined'
|
||||||
@ -124,7 +125,7 @@ const Header: FC<IHeaderProps> = ({
|
|||||||
</ActionButton>
|
</ActionButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
{currentConversationId && inputsForms.length > 0 && (
|
{currentConversationId && inputsForms.length > 0 && !allInputsHidden && (
|
||||||
<ViewFormDropdown />
|
<ViewFormDropdown />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@ -171,7 +172,7 @@ const Header: FC<IHeaderProps> = ({
|
|||||||
</ActionButton>
|
</ActionButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
{currentConversationId && inputsForms.length > 0 && (
|
{currentConversationId && inputsForms.length > 0 && !allInputsHidden && (
|
||||||
<ViewFormDropdown iconColor={theme?.colorPathOnHeader} />
|
<ViewFormDropdown iconColor={theme?.colorPathOnHeader} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user