feat: chat ui

This commit is contained in:
archer
2023-05-12 00:09:10 +08:00
parent 39f9080eb2
commit 1226c3efb7
6 changed files with 195 additions and 104 deletions

View File

@@ -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
};

View File

@@ -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;
@@ -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%;
}

View File

@@ -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}