Merge pull request 'fix(admin): make database metric cards responsive' (#10) from fix/qa-db-labels-overflow into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-web-ui/pulls/10 Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
commit
007c3d604e
|
|
@ -63,25 +63,35 @@ export const DatabaseBackupTab: React.FC<DatabaseBackupTabProps> = ({
|
|||
)}
|
||||
|
||||
{/* KPI Metrics */}
|
||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
|
||||
<div className="bg-slate-50 border border-slate-200/80 rounded-2xl p-4 text-center">
|
||||
<p className="text-2xl font-black text-slate-800">{dbInfo?.database_name || 'panaceadb'}</p>
|
||||
<p className="text-[10px] font-bold text-slate-400 uppercase tracking-wider mt-1">Database Name</p>
|
||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-2 sm:gap-4">
|
||||
<div className="bg-slate-50 border border-slate-200/80 rounded-2xl p-2.5 sm:p-4 text-center flex flex-col justify-center min-w-0">
|
||||
<p className="text-sm sm:text-lg md:text-2xl font-black text-slate-800 break-words leading-tight">
|
||||
{dbInfo?.database_name || 'panaceadb'}
|
||||
</p>
|
||||
<p className="text-[10px] font-bold text-slate-400 uppercase tracking-wider mt-1 break-words">Database Name</p>
|
||||
</div>
|
||||
<div className="bg-indigo-50/60 border border-indigo-200/60 rounded-2xl p-4 text-center">
|
||||
<p className="text-2xl font-black text-indigo-700">{dbInfo?.size_human || '23 MB'}</p>
|
||||
<p className="text-[10px] font-bold text-indigo-600 uppercase tracking-wider mt-1">Total Database Size</p>
|
||||
<div className="bg-indigo-50/60 border border-indigo-200/60 rounded-2xl p-2.5 sm:p-4 text-center flex flex-col justify-center min-w-0">
|
||||
<p className="text-sm sm:text-lg md:text-2xl font-black text-indigo-700 break-words leading-tight">
|
||||
{dbInfo?.size_human || '23 MB'}
|
||||
</p>
|
||||
<p className="text-[10px] font-bold text-indigo-600 uppercase tracking-wider mt-1 break-words">Total Database Size</p>
|
||||
</div>
|
||||
<div className="bg-emerald-50/60 border border-emerald-200/60 rounded-2xl p-4 text-center">
|
||||
<p className="text-2xl font-black text-emerald-700">{dbInfo?.total_tables || '42'}</p>
|
||||
<p className="text-[10px] font-bold text-emerald-600 uppercase tracking-wider mt-1">Relational Tables</p>
|
||||
<div className="bg-emerald-50/60 border border-emerald-200/60 rounded-2xl p-2.5 sm:p-4 text-center flex flex-col justify-center min-w-0">
|
||||
<p className="text-sm sm:text-lg md:text-2xl font-black text-emerald-700 break-words leading-tight">
|
||||
{dbInfo?.total_tables || '42'}
|
||||
</p>
|
||||
<p className="text-[10px] font-bold text-emerald-600 uppercase tracking-wider mt-1 break-words">Relational Tables</p>
|
||||
</div>
|
||||
<div className="bg-purple-50/60 border border-purple-200/60 rounded-2xl p-4 text-center">
|
||||
<p className="text-2xl font-black text-purple-700">acu_content</p>
|
||||
<p className="text-[10px] font-bold text-purple-600 uppercase tracking-wider mt-1">Primary Schema</p>
|
||||
<div className="bg-purple-50/60 border border-purple-200/60 rounded-2xl p-2.5 sm:p-4 text-center flex flex-col justify-center min-w-0">
|
||||
<p className="text-sm sm:text-lg md:text-2xl font-black text-purple-700 break-words leading-tight">
|
||||
acu_content
|
||||
</p>
|
||||
<p className="text-[10px] font-bold text-purple-600 uppercase tracking-wider mt-1 break-words">Primary Schema</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{/* Action Cards */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
{/* Full Database */}
|
||||
|
|
|
|||
Loading…
Reference in New Issue