@@ -220,6 +220,7 @@ const Page: NextPageWithLayout = () => { modelType={modelType} modelTitle={botParams?.title} currentVersion={version} + tags={botParams?.tags ?? []} /> {/* {botParams?.blocked && (
@@ -12,7 +12,7 @@ import styles from './chat-window.module.scss' import 'intro.js/introjs.css' import { c } from '#/shared' import { Device, DeviceOs } from '#/shared/lib/types/entities' -import { IModelInputs } from '#/entities/model-entity' +import { IModelInputs, IModelTag } from '#/entities/model-entity' import { Message } from '#/entities/message' import { ModelInput } from '#/features/model-input' @@ -42,6 +42,7 @@ export interface ChatProps { deleteMessage: (message_uid: string) => void modelTitle: string | undefined currentVersion: string + tags: IModelTag[] } function Chat({ @@ -60,6 +61,7 @@ function Chat({ blocked, currentVersion, deviceOs, + tags, }: ChatProps) { const desktop = device === 'desktop' @@ -105,7 +107,7 @@ function Chat({ paddingTop: 0, paddingBottom: 1, width: '100%', - height: desktop ? '75vh' : 'calc(100dvh - 245px)', + height: desktop ? '75vh' : `calc(100dvh - ${tags.length == 0 ? '200px' : '240px'})`, overflow: 'hidden', }} >