@@ -185,7 +185,8 @@ const ImageModelPage: NextPageWithLayout = () => { ({ const theme = useAppSelector((state) => state.theme.theme) const [resendValue, setResendValue] = React.useState('') - const onLoadImage = useCallback( - (event: React.ChangeEvent | null, file?: File) => { - if (event?.target.files) { - setFile(event.target.files[0]) - } - if (file) { - setFile(file) - } - }, - [] - ) + const onLoadImage = useCallback((event: React.ChangeEvent | null, file?: File) => { + if (event?.target.files) { + setFile(event.target.files[0]) + } + if (file) { + setFile(file) + } + }, []) const handleSetResetValue = useCallback( (value: string) => { @@ -103,16 +100,10 @@ function Chat({ spacing={0} sx={{ borderRadius: desktop ? '15px' : '13px', - backgroundColor: desktop - ? theme === 'light' - ? 'white' - : '#151518' - : theme === 'light' - ? 'white' - : '#151518', + backgroundColor: desktop ? (theme === 'light' ? 'white' : '#151518') : theme === 'light' ? 'white' : '#151518', padding: desktop ? (blocked ? 2 : 2) : 1.5, paddingTop: 0, - paddingBottom: blocked ? (desktop ? 3.8 : 5) : 1, + paddingBottom: 1, width: '100%', height: desktop ? '75vh' : 'calc(100dvh - 245px)', overflow: 'hidden', @@ -149,9 +140,7 @@ function Chat({ {blocked && (
- - Модель недоступна - + Модель недоступна
)}