Skip to content

Commit

Permalink
Font
Browse files Browse the repository at this point in the history
  • Loading branch information
msveshnikov committed Mar 18, 2024
1 parent ec0ecfa commit edfad80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
10 changes: 1 addition & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,7 @@ function App() {
<Box flex={1} overflow="auto" padding={2} display="flex" flexDirection="column" ref={chatContainerRef}>
{chatHistory.map((chat, index) => (
<Box key={index} display="flex" flexDirection="column" marginBottom={2}>
<Box
alignSelf="flex-end"
bgcolor="#d4edda"
color="#155724"
padding={1}
style={{ fontFamily: "cursive" }}
borderRadius={2}
>
<Box alignSelf="flex-end" bgcolor="#d4edda" color="#155724" padding={1} borderRadius={2}>
{chat.user}
</Box>
<Box
Expand All @@ -188,7 +181,6 @@ function App() {
padding={1}
marginTop={1}
borderRadius={2}
style={{ fontFamily: "cursive" }}
>
{isModelResponding && chat.assistant === null && <CircularProgress size={20} />}
{chat.assistant !== null && <ReactMarkdown>{chat.assistant}</ReactMarkdown>}
Expand Down
11 changes: 4 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { ThemeProvider } from "@mui/material";
import theme from "./theme";


const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<ThemeProvider theme={theme("light")}>
<React.StrictMode>
<App />
</React.StrictMode>
</ThemeProvider>
<React.StrictMode>
<App />
</React.StrictMode>
);
6 changes: 3 additions & 3 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const theme = (mode) =>
createTheme({
palette: {
mode: mode,
// primary: {
// main: "#F50057",
// },
primary: {
main: "#F50057",
},
secondary: {
main: "#673ab7",
},
Expand Down

0 comments on commit edfad80

Please sign in to comment.