Make date font smaller and change author/message fonts

This commit is contained in:
Franck Royer 2021-05-04 07:53:26 +10:00
parent 2c741da2c3
commit dedeb19dae
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 30 additions and 1 deletions

View File

@ -13,6 +13,35 @@ import { WakuContext } from './WakuContext';
import { ThemeProvider } from '@livechat/ui-kit'; import { ThemeProvider } from '@livechat/ui-kit';
import { generate } from 'server-name-generator'; import { generate } from 'server-name-generator';
const themes = {
AuthorName: {
css: {
fontSize: '1.1em',
},
},
Message: {
css: {
margin: '0em',
padding: '0em',
fontSize: '0.83em',
},
},
MessageText: {
css: {
margin: '0em',
padding: '0.1em',
paddingLeft: '1em',
fontSize: '1.1em',
},
},
MessageGroup: {
css: {
margin: '0em',
padding: '0.2em',
},
},
};
export const ChatContentTopic = 'dingpu'; export const ChatContentTopic = 'dingpu';
export default function App() { export default function App() {
@ -82,7 +111,7 @@ export default function App() {
style={{ height: '100vh', width: '100vw', overflow: 'hidden' }} style={{ height: '100vh', width: '100vw', overflow: 'hidden' }}
> >
<WakuContext.Provider value={{ waku: stateWaku }}> <WakuContext.Provider value={{ waku: stateWaku }}>
<ThemeProvider> <ThemeProvider theme={themes}>
<Room <Room
nick={nick} nick={nick}
lines={stateMessages} lines={stateMessages}