new button fix

This commit is contained in:
2026-01-30 19:37:21 -05:00
parent ad6e686c74
commit 94c9e28393

View File

@@ -312,15 +312,15 @@ export default function ChallengeDetail() {
borderRadius: '0.5rem' borderRadius: '0.5rem'
}} }}
> >
<div style={{ flex: 1, minWidth: 0, overflow: 'hidden' }}> <div style={{ flex: 1, minWidth: 0 }}>
<div style={{ fontWeight: 500, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{friend.username}</div> <div style={{ fontWeight: 500 }}>{friend.username}</div>
<div style={{ fontSize: '0.875rem', color: 'var(--text-muted)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{friend.email}</div> <div style={{ fontSize: '0.875rem', color: 'var(--text-muted)' }}>{friend.email}</div>
</div> </div>
<button <button
className="btn btn-primary btn-sm" className="btn btn-primary btn-sm"
onClick={() => handleInvite(friend.id, friend.username)} onClick={() => handleInvite(friend.id, friend.username)}
disabled={inviting === friend.id} disabled={inviting === friend.id}
style={{ flexShrink: 0 }} style={{ flexShrink: 0, width: 'auto' }}
> >
{inviting === friend.id ? 'Inviting...' : 'Invite'} {inviting === friend.id ? 'Inviting...' : 'Invite'}
</button> </button>
@@ -376,7 +376,7 @@ export default function ChallengeDetail() {
className="btn btn-primary btn-sm" className="btn btn-primary btn-sm"
onClick={() => handleInvite(user.id, user.username)} onClick={() => handleInvite(user.id, user.username)}
disabled={inviting === user.id} disabled={inviting === user.id}
style={{ flexShrink: 0 }} style={{ flexShrink: 0, width: 'auto' }}
> >
{inviting === user.id ? 'Inviting...' : 'Invite'} {inviting === user.id ? 'Inviting...' : 'Invite'}
</button> </button>