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.
style: ui optimization
shuai1aeea01c6f5b
diff --git a/ui/src/index.scss b/ui/src/index.scssindex e3153fd2..508598ac 100644--- a/ui/src/index.scss+++ b/ui/src/index.scss@@ -119,10 +119,12 @@ img[src=''] {display: flex;flex-direction: column;}-#root > footer {+#root footer {margin-top: auto !important;padding-bottom: constant(safe-area-inset-bottom);padding-bottom: env(safe-area-inset-bottom);+ padding-left: 12px !important;+ padding-right: 12px !important;}.bg-f5 {diff --git a/ui/src/pages/Questions/Detail/components/Question/index.tsx b/ui/src/pages/Questions/Detail/components/Question/index.tsxindex 19b73b06..97ca1fd4 100644--- a/ui/src/pages/Questions/Detail/components/Question/index.tsx+++ b/ui/src/pages/Questions/Detail/components/Question/index.tsx@@ -104,17 +104,21 @@ const Index: FC<Props> = ({ data, initPage, hasAnswer }) => {<div className="d-flex flex-wrap align-items-center small mb-4 text-secondary border-bottom pb-3"><BaseUserCard data={data.user_info} className="me-3" />- <FormatTime- time={data.create_time}- preFix={t('created')}- className="me-3"- />+ <Link to={`/posts/${data.id}/timeline`}>+ <FormatTime+ time={data.create_time}+ preFix={t('created')}+ className="me-3 link-secondary"+ />+ </Link>- <FormatTime- time={data.edit_time}- preFix={t('Edited')}- className="me-3"- />+ <Link to={`/posts/${data.id}/timeline`}>+ <FormatTime+ time={data.edit_time}+ preFix={t('Edited')}+ className="me-3 link-secondary"+ />+ </Link>{data?.view_count > 0 && (<div className="me-3">@@ -137,7 +141,7 @@ const Index: FC<Props> = ({ data, initPage, hasAnswer }) => {<ImgViewer><articleref={ref}- className="fmt text-break text-wrap"+ className="fmt text-break text-wrap last-p mb-4"dangerouslySetInnerHTML={{ __html: data?.html }}/></ImgViewer>diff --git a/ui/src/pages/Questions/index.tsx b/ui/src/pages/Questions/index.tsxindex 2f08cbf0..7239feb6 100644--- a/ui/src/pages/Questions/index.tsx+++ b/ui/src/pages/Questions/index.tsx@@ -69,7 +69,7 @@ const Questions: FC = () => {usePageTags({ title: pageTitle, subtitle: slogan });return (<Row className="pt-4 mb-5">- <Col className="page-main flex-auto">+ <Col className="page-main flex-auto overflow-x-hidden"><QuestionListsource="questions"data={listData}