chore: responsive header (#21115)

This commit is contained in:
zxhlyh 2025-06-17 17:37:06 +08:00 • committed by GitHub
commit fc187d6998
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 211 additions and 219 deletions

View file

@ -20,22 +20,22 @@ const EnvNav = () => {
return (
<div className={`
mr-4 flex h-[22px] items-center rounded-md border px-2 text-xs font-medium
mr-1 flex h-[22px] items-center rounded-md border px-2 text-xs font-medium
${headerEnvClassName[langeniusVersionInfo.current_env]}
`}>
{
langeniusVersionInfo.current_env === 'TESTING' && (
<>
<Beaker02 className='mr-1 h-3 w-3' />
{t('common.environment.testing')}
<Beaker02 className='h-3 w-3' />
<div className='ml-1 max-[1280px]:hidden'>{t('common.environment.testing')}</div>
</>
)
}
{
langeniusVersionInfo.current_env === 'DEVELOPMENT' && (
<>
<TerminalSquare className='mr-1 h-3 w-3' />
{t('common.environment.development')}
<TerminalSquare className='h-3 w-3' />
<div className='ml-1 max-[1280px]:hidden'>{t('common.environment.development')}</div>
</>
)
}