-
- {botParams &&
- botParams.tags.map((tag, index) => (
-
-
- {tag.title}
-
- ))}
-
+ {desktop && (
+
+ {botParams &&
+ botParams.tags.map((tag, index) => (
+
+
+ {tag.title}
+
+ ))}
+
+ )}
{desktop &&
}
{desktop && (
@@ -326,7 +326,7 @@ const Page: NextPageWithLayout
= () => {
modelType={modelType}
modelTitle={botParams?.title}
currentVersion={version}
- tags={botParams?.tags ?? []}
+ tags={desktop ? botParams?.tags ?? [] : []}
inputValue={inputContent}
onInputValueChange={setInputContent}
predictedPrice={predictedPrice}
@@ -345,9 +345,7 @@ const Page: NextPageWithLayout = () => {
padding: desktop ? (botParams?.blocked ? 2 : 2) : 1.25,
paddingBlock: 1.5,
width: '100%',
- height: desktop
- ? '75vh'
- : `calc(100dvh - ${botParams?.tags && botParams?.tags.length == 0 ? '200px' : '240px'})`,
+ height: desktop ? '75vh' : 'calc(100dvh - 200px)',
overflowY: 'auto',
}}
>
@@ -65,7 +65,6 @@ function Chat({
blocked,
currentVersion,
deviceOs,
- tags,
inputValue,
onInputValueChange,
predictedPrice,
@@ -118,7 +117,7 @@ function Chat({
paddingTop: 0,
paddingBottom: 1.25,
width: '100%',
- height: desktop ? '75vh' : `calc(100dvh - ${tags.length == 0 ? '200px' : '285px'})`,
+ height: desktop ? '75vh' : 'calc(100dvh - 200px)',
overflow: 'hidden',
}}
>