fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatUserReference } from '../../helpers/safeDisplay';
|
||||
|
||||
import { Trans } from 'react-i18next';
|
||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||
@@ -104,9 +105,13 @@ const UserRanking = ({ data, title, icon, t }) => {
|
||||
<div className='flex items-center justify-between'>
|
||||
<span
|
||||
className='text-sm font-medium truncate'
|
||||
title={`${item.display_name || item.username || 'User'} (ID: ${item.user_id})`}
|
||||
title={`${formatUserReference(item.display_name || item.username, item.user_id, t('未知用户'))}`}
|
||||
>
|
||||
{item.display_name || item.username || `User ${item.user_id}`}
|
||||
{formatUserReference(
|
||||
item.display_name || item.username,
|
||||
item.user_id,
|
||||
t('未知用户'),
|
||||
)}
|
||||
<span className='text-xs text-gray-400 ml-1'>
|
||||
#{item.user_id}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user