@@ -3,7 +3,6 @@ import { Box } from '@mui/material' import Image from 'next/image' import styles from './voice-clone-mobile.module.scss' -import { ModelInput } from '#/features/model-input' export function VoiceCloneMobile() { const steps = [ @@ -11,7 +10,6 @@ export function VoiceCloneMobile() { { label: 'Шаг 2', src: '/voice-clone/voice-selector-mobile.png', alt: 'Выбор голоса' }, { label: 'Шаг 3', src: '/voice-clone/message-preview-mobile.png', alt: 'Предпросмотр сообщения' }, ] - const inputTypes = [{ type: 'text', required: true, versions: [] }] return ( @@ -39,18 +37,6 @@ export function VoiceCloneMobile() { ))} - -
- false} - styles='chats' - viewMobileSettings={() => {}} - currentVersion='' - input_types={inputTypes} - /> -
@@ -223,7 +223,6 @@ const VoiceCloningModelPage: NextPageWithLayout = () => { const generationsInitialLoading = loading && offset.current === 0 const mobileScrollAreaHeight = `calc(100dvh - 116px - 61px - 15px ${botParams?.blocked ? '- 17px' : '- 110px'})` const compactPlaygroundEmpty = scope === 'playground' && !hasGenerations - /** Меню + отступы layout + шапка страницы + табы — чтобы основной блок доходил до низа экрана без серой полосы */ const mobileVoiceCompactMinHeight = 'calc(100dvh - 200px)' return ( @@ -389,7 +388,12 @@ const VoiceCloningModelPage: NextPageWithLayout = () => { sx={{ position: 'relative', ...(compactPlaygroundEmpty - ? { flex: 1, display: 'flex', flexDirection: 'column', minHeight: 0 } + ? { + height: mobileVoiceCompactMinHeight, + display: 'flex', + flexDirection: 'column', + minHeight: 0, + } : {}), }} > @@ -415,7 +419,7 @@ const VoiceCloningModelPage: NextPageWithLayout = () => { position: 'relative', borderRadius: '13px', ...(compactPlaygroundEmpty - ? { flex: 1, display: 'flex', flexDirection: 'column', minHeight: 0 } + ? { height: '100%', display: 'flex', flexDirection: 'column', minHeight: 0 } : {}), }} >