made delete red, moved button for regular posts (#1008)
This commit is contained in:
parent
10f0bbc63d
commit
189da4a0cf
|
@ -121,7 +121,7 @@ function RichEditGroupAboutPost(props: { group: Group; post: Post | null }) {
|
||||||
deleteGroupAboutPost()
|
deleteGroupAboutPost()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TrashIcon className="inline h-5 w-5" />
|
<TrashIcon className="inline h-5 w-5 text-red-500" />
|
||||||
</Button>
|
</Button>
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
|
@ -207,25 +207,20 @@ export function RichEditPost(props: { post: Post }) {
|
||||||
</Row>
|
</Row>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<Col>
|
||||||
<div className="relative">
|
<Content content={post.content} />
|
||||||
<div className="absolute top-0 right-0 z-10 space-x-2">
|
<Row className="place-content-end">
|
||||||
<Button
|
<Button
|
||||||
color="gray"
|
color="gray-white"
|
||||||
size="xs"
|
size="xs"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setEditing(true)
|
setEditing(true)
|
||||||
editor?.commands.focus('end')
|
editor?.commands.focus('end')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PencilIcon className="inline h-4 w-4" />
|
<PencilIcon className="inline h-4 w-4" />
|
||||||
Edit
|
</Button>
|
||||||
</Button>
|
</Row>
|
||||||
</div>
|
</Col>
|
||||||
|
|
||||||
<Content content={post.content} />
|
|
||||||
<Spacer h={2} />
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user