prevents line breaks for author names, reblog-icon-reblogger
This commit is contained in:
parent
5838039fef
commit
37c01fc150
|
@ -6,6 +6,9 @@ export const styles = (theme: Theme) =>
|
|||
marginTop: theme.spacing.unit,
|
||||
marginBottom: theme.spacing.unit
|
||||
},
|
||||
postAuthorName: {
|
||||
whiteSpace: 'nowrap',
|
||||
},
|
||||
postReblogChip: {
|
||||
color: theme.palette.common.white,
|
||||
"&:hover": {
|
||||
|
|
|
@ -410,11 +410,10 @@ export class Post extends React.Component<any, IPostState> {
|
|||
emojis.concat(reblogger.emojis);
|
||||
}
|
||||
|
||||
// console.log(post);
|
||||
|
||||
return (
|
||||
<>
|
||||
<span
|
||||
className={classes.postAuthorName}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: emojifyString(
|
||||
author.display_name || author.username,
|
||||
|
@ -436,7 +435,7 @@ export class Post extends React.Component<any, IPostState> {
|
|||
}}
|
||||
></span>
|
||||
{reblogger ? (
|
||||
<>
|
||||
<div>
|
||||
<AutorenewIcon
|
||||
fontSize="small"
|
||||
className={classes.postReblogIcon}
|
||||
|
@ -451,7 +450,7 @@ export class Post extends React.Component<any, IPostState> {
|
|||
)
|
||||
}}
|
||||
></span>
|
||||
</>
|
||||
</div>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue