mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +01:00
Various improvements (#359)
* Fix markdown paragraphs in comments * Remove autofocus on user registration form * Show (new) edit button for Post only to power users * Add email address under name in Likes box
This commit is contained in:
committed by
GitHub
parent
69c26317d0
commit
2f3ebf88a5
@@ -26,8 +26,11 @@ const LikeList = ({ likes, areLoading, error}: Props) => (
|
||||
{
|
||||
likes.map((like, i) => (
|
||||
<div className="likeListItem" key={i}>
|
||||
<Gravatar email={like.email} size={28} className="gravatar" />
|
||||
<span className="likeListItemName">{like.fullName}</span>
|
||||
<Gravatar email={like.email} size={32} className="gravatar" />
|
||||
<div className="likeListItemUserInfo">
|
||||
<span className="likeListItemName" title={like.fullName}>{like.fullName}</span>
|
||||
<span className="likeListItemEmail" title={like.email}>{like.email}</span>
|
||||
</div>
|
||||
</div>
|
||||
))
|
||||
}
|
||||
|
||||
@@ -243,9 +243,11 @@ class PostP extends React.Component<Props> {
|
||||
<PostStatusLabel
|
||||
{...postStatuses.find(postStatus => postStatus.id === post.postStatusId)}
|
||||
/>
|
||||
<ActionLink onClick={toggleEditMode} icon={<EditIcon />} customClass='editAction'>
|
||||
{I18n.t('common.buttons.edit')}
|
||||
</ActionLink>
|
||||
{ isPowerUser &&
|
||||
<ActionLink onClick={toggleEditMode} icon={<EditIcon />} customClass='editAction'>
|
||||
{I18n.t('common.buttons.edit')}
|
||||
</ActionLink>
|
||||
}
|
||||
</div>
|
||||
|
||||
<ReactMarkdown
|
||||
|
||||
Reference in New Issue
Block a user