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: table add width
shuai596b104e3c59
diff --git a/ui/src/pages/Admin/Answers/index.tsx b/ui/src/pages/Admin/Answers/index.tsxindex 3a33fe49..cc584c31 100644--- a/ui/src/pages/Admin/Answers/index.tsx+++ b/ui/src/pages/Admin/Answers/index.tsx@@ -110,10 +110,12 @@ const Answers: FC = () => {<thead><tr><th>{t('post')}</th>- <th>{t('votes')}</th>- <th>{t('created')}</th>- <th>{t('status')}</th>- {curFilter !== 'deleted' && <th>{t('action')}</th>}+ <th style={{ width: '11%' }}>{t('votes')}</th>+ <th style={{ width: '14%' }}>{t('created')}</th>+ <th style={{ width: '11%' }}>{t('status')}</th>+ {curFilter !== 'deleted' && (+ <th style={{ width: '11%' }}>{t('action')}</th>+ )}</tr></thead><tbody className="align-middle">@@ -164,7 +166,10 @@ const Answers: FC = () => {</td>{curFilter !== 'deleted' && (<td>- <Button variant="link" onClick={() => handleChange(li.id)}>+ <Button+ variant="link"+ className="p-0 btn-no-border"+ onClick={() => handleChange(li.id)}>{t('change')}</Button></td>diff --git a/ui/src/pages/Admin/Questions/index.tsx b/ui/src/pages/Admin/Questions/index.tsxindex c2f5e5c6..76a65de9 100644--- a/ui/src/pages/Admin/Questions/index.tsx+++ b/ui/src/pages/Admin/Questions/index.tsx@@ -126,12 +126,14 @@ const Questions: FC = () => {<Table><thead><tr>- <th style={{ width: '40%' }}>{t('post')}</th>- <th>{t('votes')}</th>- <th>{t('answers')}</th>+ <th>{t('post')}</th>+ <th style={{ width: '8%' }}>{t('votes')}</th>+ <th style={{ width: '8%' }}>{t('answers')}</th><th style={{ width: '20%' }}>{t('created')}</th>- <th>{t('status')}</th>- {curFilter !== 'deleted' && <th>{t('action')}</th>}+ <th style={{ width: '9%' }}>{t('status')}</th>+ {curFilter !== 'deleted' && (+ <th style={{ width: '10%' }}>{t('action')}</th>+ )}</tr></thead><tbody className="align-middle">@@ -177,7 +179,10 @@ const Questions: FC = () => {</td>{curFilter !== 'deleted' && (<td>- <Button variant="link" onClick={() => handleChange(li.id)}>+ <Button+ variant="link"+ className="p-0 btn-no-border"+ onClick={() => handleChange(li.id)}>{t('change')}</Button></td>diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsxindex ae8942b4..58b849d1 100644--- a/ui/src/pages/Admin/Users/index.tsx+++ b/ui/src/pages/Admin/Users/index.tsx@@ -86,20 +86,22 @@ const Users: FC = () => {<Table><thead><tr>- <th style={{ width: '30%' }}>{t('name')}</th>- <th>{t('reputation')}</th>+ <th>{t('name')}</th>+ <th style={{ width: '12%' }}>{t('reputation')}</th><th style={{ width: '20%' }}>{t('email')}</th>- <th className="text-nowrap" style={{ width: '20%' }}>+ <th className="text-nowrap" style={{ width: '15%' }}>{t('created_at')}</th>{(curFilter === 'deleted' || curFilter === 'suspended') && (- <th className="text-nowrap" style={{ width: '15%' }}>+ <th className="text-nowrap" style={{ width: '10%' }}>{curFilter === 'deleted' ? t('delete_at') : t('suspend_at')}</th>)}- <th>{t('status')}</th>- {curFilter !== 'deleted' ? <th>{t('action')}</th> : null}+ <th style={{ width: '10%' }}>{t('status')}</th>+ {curFilter !== 'deleted' ? (+ <th style={{ width: '10%' }}>{t('action')}</th>+ ) : null}</tr></thead><tbody className="align-middle">@@ -136,7 +138,7 @@ const Users: FC = () => {<td>{user.status !== 'deleted' && (<Button- className="px-2"+ className="p-0 btn-no-border"variant="link"onClick={() => handleClick(user)}>{t('change')}