mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-02-07 04:43:20 +01:00
hides account name with ellipsis instead of line break, fixes colors
This commit is contained in:
parent
37c01fc150
commit
a168b614b2
@ -6,8 +6,21 @@ export const styles = (theme: Theme) =>
|
|||||||
marginTop: theme.spacing.unit,
|
marginTop: theme.spacing.unit,
|
||||||
marginBottom: theme.spacing.unit
|
marginBottom: theme.spacing.unit
|
||||||
},
|
},
|
||||||
|
postHeaderContent: {
|
||||||
|
overflow: 'hidden',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
},
|
||||||
|
postHeaderTitle: {
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
color: theme.palette.text.secondary,
|
||||||
|
},
|
||||||
postAuthorName: {
|
postAuthorName: {
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
},
|
||||||
|
postAuthorAccount: {
|
||||||
|
marginLeft: theme.spacing.unit * 0.5,
|
||||||
},
|
},
|
||||||
postReblogChip: {
|
postReblogChip: {
|
||||||
color: theme.palette.common.white,
|
color: theme.palette.common.white,
|
||||||
@ -84,14 +97,11 @@ export const styles = (theme: Theme) =>
|
|||||||
paddingTop: theme.spacing.unit,
|
paddingTop: theme.spacing.unit,
|
||||||
paddingBottom: theme.spacing.unit
|
paddingBottom: theme.spacing.unit
|
||||||
},
|
},
|
||||||
postAuthorAccount: {
|
|
||||||
color: theme.palette.grey[500],
|
|
||||||
marginLeft: theme.spacing.unit * 0.5,
|
|
||||||
},
|
|
||||||
postReblogIcon: {
|
postReblogIcon: {
|
||||||
marginBottom: theme.spacing.unit * -0.5,
|
marginBottom: theme.spacing.unit * -0.5,
|
||||||
marginLeft: theme.spacing.unit * 0.5,
|
marginLeft: theme.spacing.unit * 0.5,
|
||||||
marginRight: theme.spacing.unit * 0.5,
|
marginRight: theme.spacing.unit * 0.5,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
postAuthorEmoji: {
|
postAuthorEmoji: {
|
||||||
height: theme.typography.fontSize,
|
height: theme.typography.fontSize,
|
||||||
|
@ -647,6 +647,10 @@ export class Post extends React.Component<any, IPostState> {
|
|||||||
elevation={this.props.threadHeader ? 0 : 1}
|
elevation={this.props.threadHeader ? 0 : 1}
|
||||||
>
|
>
|
||||||
<CardHeader
|
<CardHeader
|
||||||
|
classes={{
|
||||||
|
content: classes.postHeaderContent,
|
||||||
|
title: classes.postHeaderTitle,
|
||||||
|
}}
|
||||||
avatar={
|
avatar={
|
||||||
<LinkableAvatar
|
<LinkableAvatar
|
||||||
to={`/profile/${
|
to={`/profile/${
|
||||||
@ -673,7 +677,7 @@ export class Post extends React.Component<any, IPostState> {
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
title={
|
title={
|
||||||
<Typography>{this.getReblogAuthors(post)}</Typography>
|
this.getReblogAuthors(post)
|
||||||
}
|
}
|
||||||
subheader={moment(post.created_at).format(
|
subheader={moment(post.created_at).format(
|
||||||
"MMMM Do YYYY [at] h:mm A"
|
"MMMM Do YYYY [at] h:mm A"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user