Fix timeline note design
This commit is contained in:
parent
e279174234
commit
3bf4e82010
1 changed files with 14 additions and 15 deletions
|
@ -14,7 +14,6 @@ import CRC from "crc-32";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { DateTime } from "../Date";
|
import { DateTime } from "../Date";
|
||||||
import Hr from "../Hr";
|
|
||||||
|
|
||||||
const palette = [
|
const palette = [
|
||||||
colors.amber,
|
colors.amber,
|
||||||
|
@ -49,20 +48,22 @@ const styles = (theme: Theme) =>
|
||||||
},
|
},
|
||||||
cardContent: {
|
cardContent: {
|
||||||
"&:last-child": {
|
"&:last-child": {
|
||||||
paddingBottom: 16
|
padding: 16
|
||||||
}
|
|
||||||
},
|
},
|
||||||
content: {
|
boxShadow: "0px 5px 10px rgba(0, 0, 0, 0.05)"
|
||||||
marginTop: theme.spacing.unit * 2
|
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
position: "relative"
|
position: "relative"
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
|
"& p": {
|
||||||
|
fontSize: "14px"
|
||||||
|
},
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
marginBottom: theme.spacing.unit
|
marginBottom: theme.spacing.unit,
|
||||||
|
paddingLeft: theme.spacing.unit * 3
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -83,17 +84,15 @@ export const TimelineNote = withStyles(styles, { name: "TimelineNote" })(
|
||||||
>
|
>
|
||||||
<PersonIcon />
|
<PersonIcon />
|
||||||
</Avatar>
|
</Avatar>
|
||||||
<Card className={classes.card}>
|
|
||||||
<CardContent className={classes.cardContent}>
|
|
||||||
<div className={classes.title}>
|
<div className={classes.title}>
|
||||||
<Typography>{user.email}</Typography>
|
<Typography>{user.email}</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
<DateTime date={date} />
|
<DateTime date={date} />
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<Hr />
|
<Card className={classes.card}>
|
||||||
|
<CardContent className={classes.cardContent}>
|
||||||
<Typography
|
<Typography
|
||||||
className={classes.content}
|
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: message.replace("\n", "<br />")
|
__html: message.replace("\n", "<br />")
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue