fix: post and comment scroll and overflow issues

This commit is contained in:
DIYgod 2023-04-14 00:00:37 +01:00
parent e25718ffab
commit d8d85a4101
No known key found for this signature in database
3 changed files with 9 additions and 2 deletions

View File

@ -16,7 +16,10 @@ export const Comment: React.FC<{
const { t } = useTranslation("common")
return (
<div className={cn("xlog-comment", "comment", className)} id="comments">
<div
className={cn("xlog-comment comment overflow-x-hidden", className)}
id="comments"
>
<div className="xlog-comment-count border-b pb-2 mb-6">
<span>
{comments.isLoading

View File

@ -58,7 +58,7 @@ export const CommentItem: React.FC<{
</div>
</CharacterFloatCard>
</div>
<div className="flex-1 flex flex-col rounded-lg">
<div className="flex-1 flex flex-col rounded-lg min-w-0">
<div className="mb-1 text-sm flex items-center space-x-1">
<UniLink
href={

View File

@ -393,3 +393,7 @@ textarea.input {
.xlog-lottie-logo path[fill="rgb(0,0,0)"] {
@apply fill-current;
}
.katex-html {
@apply overflow-x-auto;
}