diff --git a/app/src/assets/chat.less b/app/src/assets/chat.less
index 8aede1e..5d725f1 100644
--- a/app/src/assets/chat.less
+++ b/app/src/assets/chat.less
@@ -13,7 +13,7 @@
.scroll-action {
position: absolute;
- z-index: 64;
+ z-index: 12;
bottom: 112px;
right: 36px;
opacity: 0;
diff --git a/app/src/assets/generation.less b/app/src/assets/generation.less
index 341ff1d..86a51c1 100644
--- a/app/src/assets/generation.less
+++ b/app/src/assets/generation.less
@@ -63,7 +63,7 @@
}
}
-.input-box {
+.generate-box {
display: flex;
flex-direction: row;
width: 80%;
diff --git a/app/src/assets/home.less b/app/src/assets/home.less
index 22cf3a2..24aca80 100644
--- a/app/src/assets/home.less
+++ b/app/src/assets/home.less
@@ -228,6 +228,17 @@
}
}
+ .chat-product {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ flex-grow: 1;
+ width: 100%;
+ overflow: hidden;
+ justify-content: center;
+ align-items: center;
+ }
+
.chat-content {
display: flex;
flex-direction: column;
diff --git a/app/src/i18n.ts b/app/src/i18n.ts
index fae7029..3b36e22 100644
--- a/app/src/i18n.ts
+++ b/app/src/i18n.ts
@@ -144,6 +144,10 @@ const resources = {
"max-length-prompt":
"The content has been truncated due to the context length limit",
},
+ "generate": {
+ "title": "AI Project Generator",
+ "input-placeholder": "generate a python game",
+ }
},
},
cn: {
@@ -275,6 +279,10 @@ const resources = {
"max-length": "内容过长",
"max-length-prompt": "由于上下文长度限制,内容已被截取",
},
+ "generate": {
+ "title": "AI 项目生成器",
+ "input-placeholder": "生成一个python小游戏",
+ }
},
},
ru: {
@@ -416,6 +424,10 @@ const resources = {
"max-length-prompt":
"Содержимое было усечено из-за ограничения длины контекста",
},
+ generate: {
+ title: "Генератор AI проектов",
+ "input-placeholder": "сгенерировать python игру",
+ }
},
},
};
diff --git a/app/src/routes/Generation.tsx b/app/src/routes/Generation.tsx
index 6b80b44..ffb58b6 100644
--- a/app/src/routes/Generation.tsx
+++ b/app/src/routes/Generation.tsx
@@ -15,6 +15,7 @@ type WrapperProps = {
};
function Wrapper(props: WrapperProps) {
+ const { t } = useTranslation();
const ref = useRef(null);
const [model, setModel] = useState("GPT-3.5");
@@ -45,8 +46,8 @@ function Wrapper(props: WrapperProps) {
AI Code Generator
-