diff --git a/src/components/modules/comment/Comment.module.css b/src/components/modules/comment/Comment.module.css
index ad92c023a5..1ebe279b9d 100644
--- a/src/components/modules/comment/Comment.module.css
+++ b/src/components/modules/comment/Comment.module.css
@@ -40,7 +40,8 @@
img,
video {
- @apply rounded-md;
+ @apply my-2 rounded-md;
+
max-height: 350px;
}
@@ -50,11 +51,11 @@
pre,
code:not([class^='language-']) {
- @apply rounded bg-zinc-700/10 px-1 py-0.5 text-zinc-900;
+ @apply rounded-md bg-zinc-700/10 px-1.5 py-0.5 text-zinc-900;
}
pre > code {
- @apply bg-transparent px-0 py-0 !important;
+ @apply my-1 rounded-xl bg-zinc-100 p-2 !important;
}
}
@@ -73,6 +74,6 @@
}
pre > code {
- @apply bg-transparent !important;
+ @apply bg-zinc-900 !important;
}
}
diff --git a/src/components/modules/comment/CommentBox/AuthedInput.tsx b/src/components/modules/comment/CommentBox/AuthedInput.tsx
index 04ad667f9d..3863cb6611 100644
--- a/src/components/modules/comment/CommentBox/AuthedInput.tsx
+++ b/src/components/modules/comment/CommentBox/AuthedInput.tsx
@@ -35,7 +35,7 @@ export const CommentBoxAuthedInput = () => {
className={clsx(
'mb-2 shrink-0 select-none self-end overflow-hidden rounded-full',
'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',
- 'ml-[2px] backface-hidden',
+ 'backface-hidden ml-[2px]',
)}
>
{
-
+
)
}
diff --git a/src/components/modules/comment/CommentBox/CommentBoxLegacyForm.tsx b/src/components/modules/comment/CommentBox/CommentBoxLegacyForm.tsx
index 28f107dfcd..5188ebe03e 100644
--- a/src/components/modules/comment/CommentBox/CommentBoxLegacyForm.tsx
+++ b/src/components/modules/comment/CommentBox/CommentBoxLegacyForm.tsx
@@ -72,7 +72,7 @@ const FormWithUserInfo = () => {
-
+
)
}
@@ -86,7 +86,7 @@ const LoggedForm = () => {
className={clsx(
'mb-2 shrink-0 select-none self-end overflow-hidden rounded-full',
'dark:ring-zinc-800" bg-zinc-200 ring-2 ring-zinc-200 dark:bg-zinc-800',
- 'ml-[2px] backface-hidden',
+ 'backface-hidden ml-[2px]',
)}
>
{
-
+
)
}
diff --git a/src/components/modules/comment/CommentMarkdown.tsx b/src/components/modules/comment/CommentMarkdown.tsx
index 5644c094d2..23e7ecd3a9 100644
--- a/src/components/modules/comment/CommentMarkdown.tsx
+++ b/src/components/modules/comment/CommentMarkdown.tsx
@@ -7,8 +7,6 @@ const disabledTypes = [
'footnote',
'footnoteReference',
- 'image',
-
'htmlComment',
'htmlSelfClosing',
'htmlBlock',