fix: 数字人移动端展示

This commit is contained in:
wangyixuan.byte 2026-03-24 15:38:11 +08:00
parent aa939691f8
commit a5ee31a8d0
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import UserTag from '../UserTag';
import { RootState } from '@/store'; import { RootState } from '@/store';
import style from './index.module.less'; import style from './index.module.less';
import { useScene } from '@/lib/useCommon'; import { useScene } from '@/lib/useCommon';
import { isMobile } from '@/utils/utils';
export const LocalFullID = 'local-full-player'; export const LocalFullID = 'local-full-player';
export const RemoteFullID = 'remote-full-player'; export const RemoteFullID = 'remote-full-player';
@ -29,7 +30,7 @@ function FullScreenCard() {
style={{ background: 'unset' }} style={{ background: 'unset' }}
> >
<div id={RemoteFullID} style={{ width: '60%', height: '100%' }} /> <div id={RemoteFullID} style={{ width: '60%', height: '100%' }} />
<UserTag name="AI" className={style.tag} /> {!isMobile() ? <UserTag name="AI" className={style.tag} /> : null}
</div> </div>
</> </>
); );

View File

@ -28,7 +28,7 @@ function Room() {
{isShowSubtitle && !isMobile() ? ( {isShowSubtitle && !isMobile() ? (
<UserTag name={scene} className={style.subTitleUserTag} /> <UserTag name={scene} className={style.subTitleUserTag} />
) : null} ) : null}
{(isFullScreen || isAvatarScene) && !isMobile() ? ( {isAvatarScene || (isFullScreen && !isMobile()) ? (
<FullScreenCard /> <FullScreenCard />
) : isMobile() && isShowSubtitle ? null : ( ) : isMobile() && isShowSubtitle ? null : (
<AiAvatarCard <AiAvatarCard