Turn on better font rendering

This commit is contained in:
Chi Vinh Le
2018-07-12 18:43:03 -03:00
parent c60c4b3ef8
commit ab2c9a2195
2 changed files with 17 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
/* Here we add global stylings for body and document */
:global {
body {
margin: "0";
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
}
}
.root {
}
+3 -1
View File
@@ -5,6 +5,8 @@ import { Flex } from "talk-ui/components";
import StreamContainer from "../containers/StreamContainer";
import * as styles from "./App.css";
export interface AppProps {
asset: {} | null;
}
@@ -12,7 +14,7 @@ export interface AppProps {
const App: StatelessComponent<AppProps> = props => {
if (props.asset) {
return (
<Flex justifyContent="center">
<Flex justifyContent="center" className={styles.root}>
<StreamContainer asset={props.asset} />
</Flex>
);