feat: add changelog entry for in-app reporting

This commit is contained in:
Paul Makles
2023-02-22 18:34:35 +01:00
parent a00d554f80
commit 58f35a2813
3 changed files with 26 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { API, Message as MessageInterface, User } from "revolt.js";
import styled from "styled-components";
import { Text } from "preact-i18n";
@@ -27,6 +28,13 @@ const USER_REASONS: API.UserReportReason[] = [
"Underage",
];
/**
* Add padding to the message container
*/
const MessageContainer = styled.div`
margin-block-end: 16px;
`;
/**
* Report creation modal
*/
@@ -63,7 +71,9 @@ export default function ReportContent({
selected: {
element:
target instanceof MessageInterface ? (
<Message message={target} head />
<MessageContainer>
<Message message={target} head attachContext />
</MessageContainer>
) : target instanceof User ? (
<Row centred>
<UserShort user={target} size={32} />