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

View File

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