fix(FN-2137): right-align usage modal footer actions

- Wrap the Refresh and Close footer buttons in a dedicated right-aligned action group
- Preserve existing refresh/close behavior while improving footer layout consistency
- Add .usage-actions-right styles with token-based spacing and margin-left auto
This commit is contained in:
Fusion
2026-04-19 04:46:09 -07:00
committed by gsxdsm
parent bde0370d03
commit 9884f87208
2 changed files with 21 additions and 12 deletions

View File

@@ -493,18 +493,20 @@ export function UsageIndicator({ isOpen, onClose, projectId }: UsageIndicatorPro
<span>Last updated: {lastUpdated.toLocaleTimeString()}</span>
)}
</div>
<button
className="btn btn-sm"
onClick={handleRefresh}
disabled={loading || isRefreshing}
data-testid="usage-refresh-btn"
>
<RefreshCw size={14} className={isRefreshing ? "spin" : ""} style={{ marginRight: 6 }} />
Refresh
</button>
<button className="btn btn-primary btn-sm" onClick={onClose}>
Close
</button>
<div className="usage-actions-right">
<button
className="btn btn-sm"
onClick={handleRefresh}
disabled={loading || isRefreshing}
data-testid="usage-refresh-btn"
>
<RefreshCw size={14} className={isRefreshing ? "spin" : ""} style={{ marginRight: 6 }} />
Refresh
</button>
<button className="btn btn-primary btn-sm" onClick={onClose}>
Close
</button>
</div>
</div>
</div>
</div>

View File

@@ -14467,6 +14467,13 @@ html .column.drag-over * {
flex: 1;
}
.usage-actions-right {
display: flex;
gap: var(--space-sm);
align-items: center;
margin-left: auto;
}
/* Mobile responsive */
@media (max-width: 768px) {
.usage-modal {