Commit 1226c3ef by archer

feat: chat ui

parent 39f9080e
...@@ -11,5 +11,6 @@ chatgpt 上下文最长 4096 tokens, 会自动截取上下文,超过 4096 部 ...@@ -11,5 +11,6 @@ chatgpt 上下文最长 4096 tokens, 会自动截取上下文,超过 4096 部
服务器代理不稳定,可以过一会儿再尝试。 或者可以访问国外服务器: [FastGpt](https://fastgpt.run/) 服务器代理不稳定,可以过一会儿再尝试。 或者可以访问国外服务器: [FastGpt](https://fastgpt.run/)
**其他问题** **其他问题**
请 WX 联系: fastgpt123 请 WX 联系: fastgpt123
![](/imgs/wxqun300.jpg) | 交流群 | 小助手 |
![](/imgs/wx300.jpg) | ----------------------- | -------------------- |
| ![](/imgs/wxqun300.jpg) | ![](/imgs/wx300.jpg) |
...@@ -9,9 +9,11 @@ import Navbar from './navbar'; ...@@ -9,9 +9,11 @@ import Navbar from './navbar';
import NavbarPhone from './navbarPhone'; import NavbarPhone from './navbarPhone';
const pcUnShowLayoutRoute: Record<string, boolean> = { const pcUnShowLayoutRoute: Record<string, boolean> = {
'/': true,
'/login': true '/login': true
}; };
const phoneUnShowLayoutRoute: Record<string, boolean> = { const phoneUnShowLayoutRoute: Record<string, boolean> = {
'/': true,
'/login': true '/login': true
}; };
......
...@@ -337,10 +337,10 @@ ...@@ -337,10 +337,10 @@
} }
.markdown { .markdown {
text-align: justify; text-align: justify;
overflow-y: hidden;
tab-size: 4; tab-size: 4;
word-spacing: normal; word-spacing: normal;
word-break: break-all; word-break: break-all;
width: 100%;
p { p {
white-space: pre-line; white-space: pre-line;
...@@ -353,13 +353,13 @@ ...@@ -353,13 +353,13 @@
margin: 0; margin: 0;
border: none; border: none;
border-radius: 0; border-radius: 0;
background-color: #222 !important; background-color: #292b33 !important;
overflow-x: auto; overflow-x: auto;
color: #fff; color: #fff;
} }
pre code { pre code {
background-color: #222 !important; background-color: #292b33 !important;
width: 100%; width: 100%;
} }
......
...@@ -29,7 +29,7 @@ const Markdown = ({ source, isChatting = false }: { source: string; isChatting?: ...@@ -29,7 +29,7 @@ const Markdown = ({ source, isChatting = false }: { source: string; isChatting?:
const code = String(children); const code = String(children);
return !inline || match ? ( return !inline || match ? (
<Box my={3} borderRadius={'md'} overflow={'hidden'} backgroundColor={'#222'}> <Box my={3} borderRadius={'md'} overflow={'overlay'} backgroundColor={'#222'}>
<Flex <Flex
className="code-header" className="code-header"
py={2} py={2}
......
...@@ -141,6 +141,7 @@ const Home = () => { ...@@ -141,6 +141,7 @@ const Home = () => {
flexDirection={'column'} flexDirection={'column'}
alignItems={'center'} alignItems={'center'}
pt={'20vh'} pt={'20vh'}
overflow={'overlay'}
> >
<Box id={'particles-js'} position={'absolute'} top={0} left={0} right={0} bottom={0} /> <Box id={'particles-js'} position={'absolute'} top={0} left={0} right={0} bottom={0} />
<Image src="/icon/logo.png" w={['70px', '120px']} h={['70px', '120px']} alt={''}></Image> <Image src="/icon/logo.png" w={['70px', '120px']} h={['70px', '120px']} alt={''}></Image>
...@@ -162,7 +163,8 @@ const Home = () => { ...@@ -162,7 +163,8 @@ const Home = () => {
<Button <Button
my={5} my={5}
fontSize={['xl', '3xl']} fontSize={['xl', '3xl']}
h={['35px', '40px']} h={'auto'}
py={[2, 3]}
onClick={() => router.push(`/model`)} onClick={() => router.push(`/model`)}
> >
点击开始 点击开始
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment