fix: hide supplementary text for platform logo properly in Safari (#29238)

This commit is contained in:
Nite Knite 2025-12-07 20:36:10 +08:00 committed by GitHub
parent 52ea799cec
commit a25faa334a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,8 @@ const Header = () => {
const renderLogo = () => (
<h1>
<Link href="/apps" className='flex h-8 shrink-0 items-center justify-center px-0.5 indent-[-9999px]'>
<Link href="/apps" className='flex h-8 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap px-0.5 indent-[-9999px]'>
{isBrandingEnabled && systemFeatures.branding.application_title ? systemFeatures.branding.application_title : 'Dify'}
{systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo
? <img
src={systemFeatures.branding.workspace_logo}
@ -53,7 +54,6 @@ const Header = () => {
alt='logo'
/>
: <DifyLogo />}
{isBrandingEnabled && systemFeatures.branding.application_title ? systemFeatures.branding.application_title : 'dify'}
</Link>
</h1>
)