fix: resolve chat sidebar UI bugs for hover panel and dropdown menu (#25813)
This commit is contained in:
parent
ab910c736c
commit
e93bfe3d41
5 changed files with 47 additions and 13 deletions
|
|
@ -23,9 +23,10 @@ import { useGlobalPublicStore } from '@/context/global-public-context'
|
|||
|
||||
type Props = {
|
||||
isPanel?: boolean
|
||||
panelVisible?: boolean
|
||||
}
|
||||
|
||||
const Sidebar = ({ isPanel }: Props) => {
|
||||
const Sidebar = ({ isPanel, panelVisible }: Props) => {
|
||||
const { t } = useTranslation()
|
||||
const {
|
||||
isInstalledApp,
|
||||
|
|
@ -138,7 +139,12 @@ const Sidebar = ({ isPanel }: Props) => {
|
|||
)}
|
||||
</div>
|
||||
<div className='flex shrink-0 items-center justify-between p-3'>
|
||||
<MenuDropdown hideLogout={isInstalledApp} placement='top-start' data={appData?.site} />
|
||||
<MenuDropdown
|
||||
hideLogout={isInstalledApp}
|
||||
placement='top-start'
|
||||
data={appData?.site}
|
||||
forceClose={isPanel && !panelVisible}
|
||||
/>
|
||||
{/* powered by */}
|
||||
<div className='shrink-0'>
|
||||
{!appData?.custom_config?.remove_webapp_brand && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue