This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch feat/remove-pinned-icon in repository https://gitbox.apache.org/repos/asf/answer.git
commit 0c34640407b48a6a65f382330b056ed50ee3bcd8 Author: shuai <lishuail...@sifou.com> AuthorDate: Mon Aug 4 11:21:13 2025 +0800 fix: remove question detail page pinned icon --- ui/src/pages/Questions/Detail/components/Question/index.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ui/src/pages/Questions/Detail/components/Question/index.tsx b/ui/src/pages/Questions/Detail/components/Question/index.tsx index 86c1ba83..93134578 100644 --- a/ui/src/pages/Questions/Detail/components/Question/index.tsx +++ b/ui/src/pages/Questions/Detail/components/Question/index.tsx @@ -30,7 +30,6 @@ import { Comment, FormatTime, htmlRender, - Icon, ImgViewer, } from '@/components'; import { useRenderHtmlPlugin } from '@/utils/pluginKit'; @@ -104,16 +103,6 @@ const Index: FC<Props> = ({ data, initPage, hasAnswer, isLogged }) => { </h1> <div className="d-flex flex-wrap align-items-center small mb-3 text-secondary"> - {data?.pin === 2 && ( - <div className="me-3"> - <Icon - name="pin-fill" - className="me-1" - title={t('pinned', { keyPrefix: 'btns' })} - /> - <span>{t('pinned', { keyPrefix: 'btns' })}</span> - </div> - )} <FormatTime time={data.create_time} preFix={t('Asked')}