made delete red, moved button for regular posts (#1008)

This commit is contained in:
ingawei 2022-10-05 16:21:03 -05:00 committed by GitHub
parent 10f0bbc63d
commit 189da4a0cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 21 deletions

View File

@ -121,7 +121,7 @@ function RichEditGroupAboutPost(props: { group: Group; post: Post | null }) {
deleteGroupAboutPost()
}}
>
<TrashIcon className="inline h-5 w-5" />
<TrashIcon className="inline h-5 w-5 text-red-500" />
</Button>
</Row>
</Col>

View File

@ -207,25 +207,20 @@ export function RichEditPost(props: { post: Post }) {
</Row>
</>
) : (
<>
<div className="relative">
<div className="absolute top-0 right-0 z-10 space-x-2">
<Button
color="gray"
size="xs"
onClick={() => {
setEditing(true)
editor?.commands.focus('end')
}}
>
<PencilIcon className="inline h-4 w-4" />
Edit
</Button>
</div>
<Content content={post.content} />
<Spacer h={2} />
</div>
</>
<Col>
<Content content={post.content} />
<Row className="place-content-end">
<Button
color="gray-white"
size="xs"
onClick={() => {
setEditing(true)
editor?.commands.focus('end')
}}
>
<PencilIcon className="inline h-4 w-4" />
</Button>
</Row>
</Col>
)
}