Revert "修改 PluginStoreCard 组件,新增 displayId 优化包名展示,并调整卡片样式以提升响应式表现。更新不同屏幕尺寸的最大宽度设置,确保包名截断显示且悬停可查看完整内容。"

This reverts commit 0301421bc8.
This commit is contained in:
Qiao 2026-02-01 10:44:38 +08:00
parent 8e48b89ec6
commit ce9187b16f

View File

@ -24,7 +24,6 @@ const PluginStoreCard: React.FC<PluginStoreCardProps> = ({
}) => {
const { name, version, author, description, tags, id, homepage } = data;
const [processing, setProcessing] = useState(false);
const displayId = id?.replace(/^napcat-plugin-/, '') || id;
const handleInstall = () => {
setProcessing(true);
@ -59,7 +58,7 @@ const PluginStoreCard: React.FC<PluginStoreCardProps> = ({
return (
<DisplayCardContainer
className='w-full max-w-[420px] md:max-w-[460px] lg:max-w-[520px] 2xl:max-w-[560px]'
className='w-full max-w-[420px]'
title={
<div className="flex items-baseline gap-2">
{homepage ? (
@ -126,7 +125,7 @@ const PluginStoreCard: React.FC<PluginStoreCardProps> = ({
</span>
<span className='text-default-300'>/</span>
<Tooltip content={id}>
<span className='truncate max-w-[160px] opacity-70 italic'>{displayId}</span>
<span className='truncate max-w-[140px] opacity-70 italic'>{id}</span>
</Tooltip>
</div>