Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(Comment): Make comment boxes the same width

haitaoob68212e840f4
diff --git a/ui/src/components/Comment/components/Form/index.tsx b/ui/src/components/Comment/components/Form/index.tsx
index 66e6596f..5ca0753e 100644
--- a/ui/src/components/Comment/components/Form/index.tsx
+++ b/ui/src/components/Comment/components/Form/index.tsx
@@ -51,7 +51,7 @@ const Index = ({
'd-flex align-items-start flex-column flex-md-row',
className,
)}>
- <div>
+ <div className="w-100">
<div
className={classNames('custom-form-control', {
'is-invalid': validationErrorMsg,
diff --git a/ui/src/components/Comment/components/Reply/index.tsx b/ui/src/components/Comment/components/Reply/index.tsx
index c0e76927..13603433 100644
--- a/ui/src/components/Comment/components/Reply/index.tsx
+++ b/ui/src/components/Comment/components/Reply/index.tsx
@@ -37,7 +37,7 @@ const Index = ({ userName, onSendReply, onCancel, mode }) => {
{t('reply_to')} {userName}
</div>
<div className="d-flex mb-1 align-items-start flex-column flex-md-row">
- <div>
+ <div className="w-100">
<div
className={classNames('custom-form-control', {
'is-invalid': validationErrorMsg,