Skip to content

Commit

Permalink
feat: chat ui
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed May 11, 2023
1 parent 39f9080 commit 1226c3e
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 104 deletions.
5 changes: 3 additions & 2 deletions public/docs/chatProblem.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ chatgpt 上下文最长 4096 tokens, 会自动截取上下文,超过 4096 部
服务器代理不稳定,可以过一会儿再尝试。 或者可以访问国外服务器: [FastGpt](https://fastgpt.run/)
**其他问题**
请 WX 联系: fastgpt123
![](/imgs/wxqun300.jpg)
![](/imgs/wx300.jpg)
| 交流群 | 小助手 |
| ----------------------- | -------------------- |
| ![](/imgs/wxqun300.jpg) | ![](/imgs/wx300.jpg) |
2 changes: 2 additions & 0 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import Navbar from './navbar';
import NavbarPhone from './navbarPhone';

const pcUnShowLayoutRoute: Record<string, boolean> = {
'/': true,
'/login': true
};
const phoneUnShowLayoutRoute: Record<string, boolean> = {
'/': true,
'/login': true
};

Expand Down
6 changes: 3 additions & 3 deletions src/components/Markdown/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@
}
.markdown {
text-align: justify;
overflow-y: hidden;
tab-size: 4;
word-spacing: normal;
word-break: break-all;
width: 100%;

p {
white-space: pre-line;
Expand All @@ -353,13 +353,13 @@
margin: 0;
border: none;
border-radius: 0;
background-color: #222 !important;
background-color: #292b33 !important;
overflow-x: auto;
color: #fff;
}

pre code {
background-color: #222 !important;
background-color: #292b33 !important;
width: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Markdown = ({ source, isChatting = false }: { source: string; isChatting?:
const code = String(children);

return !inline || match ? (
<Box my={3} borderRadius={'md'} overflow={'hidden'} backgroundColor={'#222'}>
<Box my={3} borderRadius={'md'} overflow={'overlay'} backgroundColor={'#222'}>
<Flex
className="code-header"
py={2}
Expand Down
Loading

0 comments on commit 1226c3e

Please sign in to comment.