cesjavi commited on
Commit
edd5144
·
1 Parent(s): 39244a4

Fix: Agent row UI alignment and text truncation (Phase 8 UI Polish)

Browse files
frontend/src/components/AgentsView.tsx CHANGED
@@ -249,12 +249,12 @@ const AgentsView: React.FC = () => {
249
  alignItems: 'center'
250
  }}
251
  >
252
- <div>
253
- <strong>{agent.name}</strong>
254
- <p>{agent.role || 'No role provided.'}</p>
255
  </div>
256
- <div style={{ display: 'flex', alignItems: 'center', gap: 'var(--space-md)' }}>
257
- <span>{agent.api_provider} / {agent.model}</span>
258
  <button
259
  className="btn btn-glass btn-sm"
260
  onClick={(e) => {
@@ -263,6 +263,7 @@ const AgentsView: React.FC = () => {
263
  setShowShareModal(true);
264
  }}
265
  title="Share to Marketplace"
 
266
  >
267
  <ShoppingBag size={14} />
268
  </button>
 
249
  alignItems: 'center'
250
  }}
251
  >
252
+ <div style={{ flex: 1, minWidth: 0 }}>
253
+ <strong style={{ display: 'block', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{agent.name}</strong>
254
+ <p style={{ margin: 0, fontSize: '0.85rem', color: 'var(--text-dim)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{agent.role || 'No role provided.'}</p>
255
  </div>
256
+ <div style={{ display: 'flex', alignItems: 'center', gap: 'var(--space-md)', paddingLeft: 'var(--space-md)' }}>
257
+ <span style={{ fontSize: '0.75rem', fontWeight: 600, color: 'var(--accent)', whiteSpace: 'nowrap' }}>{agent.api_provider} / {agent.model}</span>
258
  <button
259
  className="btn btn-glass btn-sm"
260
  onClick={(e) => {
 
263
  setShowShareModal(true);
264
  }}
265
  title="Share to Marketplace"
266
+ style={{ padding: '8px' }}
267
  >
268
  <ShoppingBag size={14} />
269
  </button>