mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
fix, style: remove bottom padding for comment replies
This commit is contained in:
parent
e2aad470d1
commit
4f0005f4f2
3 changed files with 3 additions and 7 deletions
1
TODO.md
1
TODO.md
|
@ -49,7 +49,6 @@
|
||||||
## Баги
|
## Баги
|
||||||
|
|
||||||
- в статусе профиля нет переноса на новые линии
|
- в статусе профиля нет переноса на новые линии
|
||||||
- лишний отступ на последнем ответе на комментарий
|
|
||||||
|
|
||||||
## Другое
|
## Другое
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ export const CommentsComment = (props: {
|
||||||
isSpoiler: boolean;
|
isSpoiler: boolean;
|
||||||
isEdited: boolean;
|
isEdited: boolean;
|
||||||
isDeleted: boolean;
|
isDeleted: boolean;
|
||||||
can_like: boolean;
|
|
||||||
};
|
};
|
||||||
isSubComment?: boolean;
|
isSubComment?: boolean;
|
||||||
token: string | null;
|
token: string | null;
|
||||||
|
@ -82,7 +81,7 @@ export const CommentsComment = (props: {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article className="p-6 text-sm bg-white rounded-lg sm:text-base dark:bg-gray-900">
|
<article className={`${!props.isSubComment ? "p-6" : "pt-4"} text-sm bg-gray-100 rounded-lg sm:text-base dark:bg-gray-900`}>
|
||||||
<footer className="flex items-center justify-between mb-2">
|
<footer className="flex items-center justify-between mb-2">
|
||||||
<div className="flex flex-col items-start gap-1 sm:items-center sm:flex-row">
|
<div className="flex flex-col items-start gap-1 sm:items-center sm:flex-row">
|
||||||
<Link
|
<Link
|
||||||
|
@ -107,7 +106,7 @@ export const CommentsComment = (props: {
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<div className="relative flex items-center py-2">
|
<div className="relative flex items-center py-2">
|
||||||
<p className="text-gray-500 whitespace-pre-wrap dark:text-gray-400">
|
<p className="text-gray-800 whitespace-pre-wrap dark:text-gray-400">
|
||||||
{!props.comment.isDeleted
|
{!props.comment.isDeleted
|
||||||
? props.comment.message
|
? props.comment.message
|
||||||
: "Комментарий был удалён."}
|
: "Комментарий был удалён."}
|
||||||
|
@ -215,8 +214,8 @@ export const CommentsComment = (props: {
|
||||||
isSpoiler: comment.is_spoiler,
|
isSpoiler: comment.is_spoiler,
|
||||||
isEdited: comment.is_edited,
|
isEdited: comment.is_edited,
|
||||||
isDeleted: comment.is_deleted,
|
isDeleted: comment.is_deleted,
|
||||||
can_like: comment.can_like,
|
|
||||||
}}
|
}}
|
||||||
|
isSubComment={true}
|
||||||
token={props.token}
|
token={props.token}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -64,7 +64,6 @@ export const CommentsMain = (props: {
|
||||||
isSpoiler: comment.is_spoiler,
|
isSpoiler: comment.is_spoiler,
|
||||||
isEdited: comment.is_edited,
|
isEdited: comment.is_edited,
|
||||||
isDeleted: comment.is_deleted,
|
isDeleted: comment.is_deleted,
|
||||||
can_like: comment.can_like,
|
|
||||||
}}
|
}}
|
||||||
token={props.token}
|
token={props.token}
|
||||||
/>
|
/>
|
||||||
|
@ -188,7 +187,6 @@ const CommentsAllModal = (props: {
|
||||||
isSpoiler: comment.is_spoiler,
|
isSpoiler: comment.is_spoiler,
|
||||||
isEdited: comment.is_edited,
|
isEdited: comment.is_edited,
|
||||||
isDeleted: comment.is_deleted,
|
isDeleted: comment.is_deleted,
|
||||||
can_like: comment.can_like,
|
|
||||||
}}
|
}}
|
||||||
token={props.token}
|
token={props.token}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue