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.
refactor: responsive sidebar adjustment
robinb84a873d3308
diff --git a/ui/src/pages/Questions/Ask/index.tsx b/ui/src/pages/Questions/Ask/index.tsxindex be9ac153..abcc86f6 100644--- a/ui/src/pages/Questions/Ask/index.tsx+++ b/ui/src/pages/Questions/Ask/index.tsx@@ -412,7 +412,7 @@ const Ask = () => {)}</Form></Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><Card className="mb-4"><Card.Header>{t('title', { keyPrefix: 'how_to_format' })}diff --git a/ui/src/pages/Questions/Detail/index.tsx b/ui/src/pages/Questions/Detail/index.tsxindex 7c2c2d6e..ee02512d 100644--- a/ui/src/pages/Questions/Detail/index.tsx+++ b/ui/src/pages/Questions/Detail/index.tsx@@ -165,7 +165,7 @@ const Index = () => {/>)}</Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><RelatedQuestions id={question?.id || ''} /></Col></Row>diff --git a/ui/src/pages/Questions/EditAnswer/index.tsx b/ui/src/pages/Questions/EditAnswer/index.tsxindex aecb9c51..118fd33c 100644--- a/ui/src/pages/Questions/EditAnswer/index.tsx+++ b/ui/src/pages/Questions/EditAnswer/index.tsx@@ -217,7 +217,7 @@ const Ask = () => {</div></Form></Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><Card><Card.Header>{t('title', { keyPrefix: 'how_to_format' })}diff --git a/ui/src/pages/Questions/index.tsx b/ui/src/pages/Questions/index.tsxindex c3ffd271..86a1092a 100644--- a/ui/src/pages/Questions/index.tsx+++ b/ui/src/pages/Questions/index.tsx@@ -29,7 +29,7 @@ const Questions: FC = () => {<Col xxl={7} lg={8} sm={12}><QuestionList source="questions" /></Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><FollowingTags /><HotQuestions /></Col>diff --git a/ui/src/pages/Search/index.tsx b/ui/src/pages/Search/index.tsxindex 93019294..d08968f4 100644--- a/ui/src/pages/Search/index.tsx+++ b/ui/src/pages/Search/index.tsx@@ -53,7 +53,7 @@ const Index = () => {/></div></Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><Tips /></Col></Row>diff --git a/ui/src/pages/Tags/Detail/index.tsx b/ui/src/pages/Tags/Detail/index.tsxindex 4a6e14b4..b3780259 100644--- a/ui/src/pages/Tags/Detail/index.tsx+++ b/ui/src/pages/Tags/Detail/index.tsx@@ -90,7 +90,7 @@ const Questions: FC = () => {</div><QuestionList source="tag" /></Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><FollowingTags /><HotQuestions /></Col>diff --git a/ui/src/pages/Tags/Edit/index.tsx b/ui/src/pages/Tags/Edit/index.tsxindex 216b2a73..2b0541e1 100644--- a/ui/src/pages/Tags/Edit/index.tsx+++ b/ui/src/pages/Tags/Edit/index.tsx@@ -249,7 +249,7 @@ const Ask = () => {</div></Form></Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><Card><Card.Header>{t('title', { keyPrefix: 'how_to_format' })}diff --git a/ui/src/pages/Tags/Info/index.tsx b/ui/src/pages/Tags/Info/index.tsxindex 0765469b..96cd814a 100644--- a/ui/src/pages/Tags/Info/index.tsx+++ b/ui/src/pages/Tags/Info/index.tsx@@ -93,7 +93,7 @@ const TagIntroduction = () => {<PageTitle title={pageTitle} /><Container className="pt-4 mt-2 mb-5"><Row className="justify-content-center">- <Col xs={7}>+ <Col xxl={7} lg={8} sm={12}><h3 className="mb-3"><Linkto={`/tags/${tagInfo?.slug_name}`}@@ -133,7 +133,7 @@ const TagIntroduction = () => {})}</div></Col>- <Col xs={3}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><Card><Card.Header className="d-flex justify-content-between"><span>{t('synonyms.title')}</span>diff --git a/ui/src/pages/Users/Notifications/index.tsx b/ui/src/pages/Users/Notifications/index.tsxindex ff93bc0c..aef9be45 100644--- a/ui/src/pages/Users/Notifications/index.tsx+++ b/ui/src/pages/Users/Notifications/index.tsx@@ -120,7 +120,7 @@ const Notifications = () => {</div>)}</Col>- <Col xxl={3} lg={4} sm={12} />+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0" /></Row></Container></>diff --git a/ui/src/pages/Users/Personal/index.tsx b/ui/src/pages/Users/Personal/index.tsxindex c2b6352a..7c099a4b 100644--- a/ui/src/pages/Users/Personal/index.tsx+++ b/ui/src/pages/Users/Personal/index.tsx@@ -60,7 +60,11 @@ const Personal: FC = () => {<Col xxl={7} lg={8} sm={12}><UserInfo data={userInfo?.info} /></Col>- <Col xxl={3} lg={4} sm={12} className="d-flex justify-content-end">+ <Col+ xxl={3}+ lg={4}+ sm={12}+ className="d-flex justify-content-end mt-5 mt-lg-0">{isSelf && (<div><Button@@ -111,7 +115,7 @@ const Personal: FC = () => {</div>)}</Col>- <Col xxl={3} lg={4} sm={12}>+ <Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0"><h5 className="mb-3">Stats</h5>{userInfo?.info && (<>