larxius commited on
Commit
0cbf338
·
verified ·
1 Parent(s): ae25b76

Update frontend/src/pages/SupportEngineerPanel.jsx

Browse files
frontend/src/pages/SupportEngineerPanel.jsx CHANGED
@@ -975,7 +975,7 @@ export const SupportEngineerPanel = () => {
975
  <td className="px-md py-sm"><span className="px-2 py-0.5 rounded border text-[11px] font-bold tracking-wide bg-surface-container-high border-outline-variant text-on-surface-variant">{org.tier || org.subscription_tier}</span></td>
976
  <td className="px-md py-sm"><div className="flex items-center gap-xs text-[12.5px] font-bold"><span className={`w-2 h-2 rounded-full ${org.status === 'active' || org.is_active ? 'bg-green-500' : 'bg-red-500'}`}></span><span className={org.status === 'active' || org.is_active ? 'text-green-600 dark:text-green-500' : 'text-error'}>{org.status ? org.status.charAt(0).toUpperCase() + org.status.slice(1) : (org.is_active ? 'Active' : 'Inactive')}</span></div></td>
977
  <td className="px-md py-sm">
978
- <div className="flex flex-nowrap gap-2 items-center">
979
  {org.quotas?.map((q, idx) => {
980
  const remaining = q.allocated_count === -1 ? '∞' : Math.max(0, q.allocated_count - (q.used_count || 0));
981
  const style = q.scan_type === 'Deep' ? 'bg-orange-500/10 text-orange-600 border-orange-500/30' :
@@ -990,10 +990,12 @@ export const SupportEngineerPanel = () => {
990
  })}
991
  </div>
992
  </td>
993
- <td className="px-md py-sm text-right">
994
- <button onClick={() => handleImpersonate(org.id, org.name)} className="text-on-surface-variant hover:text-primary transition-colors bg-transparent border-0 cursor-pointer p-1" title="Inspect Customer Environment / Assist Troubleshooting">
995
- <span className="material-symbols-outlined text-[18px]">vpn_key</span>
996
- </button>
 
 
997
  </td>
998
  </tr>
999
  ))}
 
975
  <td className="px-md py-sm"><span className="px-2 py-0.5 rounded border text-[11px] font-bold tracking-wide bg-surface-container-high border-outline-variant text-on-surface-variant">{org.tier || org.subscription_tier}</span></td>
976
  <td className="px-md py-sm"><div className="flex items-center gap-xs text-[12.5px] font-bold"><span className={`w-2 h-2 rounded-full ${org.status === 'active' || org.is_active ? 'bg-green-500' : 'bg-red-500'}`}></span><span className={org.status === 'active' || org.is_active ? 'text-green-600 dark:text-green-500' : 'text-error'}>{org.status ? org.status.charAt(0).toUpperCase() + org.status.slice(1) : (org.is_active ? 'Active' : 'Inactive')}</span></div></td>
977
  <td className="px-md py-sm">
978
+ <div className="flex flex-wrap gap-1.5 items-center">
979
  {org.quotas?.map((q, idx) => {
980
  const remaining = q.allocated_count === -1 ? '∞' : Math.max(0, q.allocated_count - (q.used_count || 0));
981
  const style = q.scan_type === 'Deep' ? 'bg-orange-500/10 text-orange-600 border-orange-500/30' :
 
990
  })}
991
  </div>
992
  </td>
993
+ <td className="px-md py-sm text-right whitespace-nowrap">
994
+ <div className="inline-flex items-center justify-end gap-1 whitespace-nowrap">
995
+ <button onClick={() => handleImpersonate(org.id, org.name)} className="text-on-surface-variant hover:text-primary transition-colors bg-transparent border-0 cursor-pointer p-1" title="Inspect Customer Environment / Assist Troubleshooting">
996
+ <span className="material-symbols-outlined text-[18px]">vpn_key</span>
997
+ </button>
998
+ </div>
999
  </td>
1000
  </tr>
1001
  ))}