Skip to content

Commit b23cf5d

Browse files
agentHitsclaude
andcommitted
fix(gui): restore the accounts toolbar and card-grid styles
27169f1 removed 493 lines from provider-workspace-settings.css while clearing review findings. The collapsed-sidebar rules it also dropped from pool-followup.css were dead; these were not. 25 of the removed selectors are still referenced by the accounts workspace and no other stylesheet defines them: the toolbar card and its rows, the filter dropdown, the sort select, the search box, the segmented controls, the two-column accounts grid and the active-card highlight. Since that commit the Accounts tab rendered those as unstyled stacked controls in a single column, which went unnoticed because the description kept screenshots taken before it. The two hunks are restored verbatim from 27169f1^ (reverse-applied; they still apply cleanly). The file stays under the size threshold at 1845 lines. Two things the first correctly styled render showed: - A paused card squeezed its hint into the title block, where it truncated both the account name and the reason. The badge and the reason now sit in their own row under the header. - The pool switch resized the shared toggle inline, which fought the knob's own centering and drew the knob off the track. It now uses the shared toggle scaled down, the way the Codex credits switch does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent ca4d2c5 commit b23cf5d

3 files changed

Lines changed: 522 additions & 11 deletions

File tree

‎gui/src/components/provider-workspace/ProviderAccountCard.tsx‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,9 @@ export default function ProviderAccountCard({
159159
}
160160
};
161161

162-
const stateBadges = (
163-
<>
164-
{skipReasonKey && <span className="badge badge-amber">{t(skipReasonKey)}</span>}
165-
{paused && <span className="badge badge-muted" title={t("pws.accountPausedHint")}>{t("codexAuth.paused")}</span>}
166-
</>
167-
);
162+
const skipBadge = skipReasonKey && <span className="badge badge-amber">{t(skipReasonKey)}</span>;
163+
const pausedBadge = paused && <span className="badge badge-muted" title={t("pws.accountPausedHint")}>{t("codexAuth.paused")}</span>;
164+
const stateBadges = <>{skipBadge}{pausedBadge}</>;
168165
const pauseButton = (size: "btn-xs" | "btn-sm") => typeof account.paused === "boolean" && onPause ? (
169166
<button
170167
type="button"
@@ -414,11 +411,10 @@ export default function ProviderAccountCard({
414411
<div className="pwi-card-title-line">
415412
<span className="pwi-card-title">{primaryTitle}</span>
416413
{planBadge}
417-
{stateBadges}
414+
{skipBadge}
418415
{switching && <span className="badge badge-muted">{t("pws.accountSwitching")}</span>}
419416
</div>
420417
<span className="pwi-card-sub">{secondarySub}</span>
421-
{paused && <span className="pwi-card-sub">{t("pws.accountPausedHint")}</span>}
422418
</div>
423419
</button>
424420
<button
@@ -480,6 +476,13 @@ export default function ProviderAccountCard({
480476
</div>
481477
</div>
482478

479+
{/* Its own row: beside the title it truncated both the account name and the reason. */}
480+
{paused && (
481+
<div className="pwi-card-paused-note">
482+
{pausedBadge}
483+
<span>{t("pws.accountPausedHint")}</span>
484+
</div>
485+
)}
483486
{quotaControls}
484487
{/* 2-Column Quotas for Gemini and Claude */}
485488
<div className="pwi-card-quotas-grid">

‎gui/src/components/provider-workspace/ProviderAccountsToolbar.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,13 +853,12 @@ export default function ProviderAccountsToolbar({
853853
{onTogglePoolEnabled && (
854854
<button
855855
type="button"
856-
className={`toggle ${poolEnabled ? "on" : ""}`}
857-
style={{ width: "32px", height: "18px" }}
856+
className={`toggle pwi-pool-toggle ${poolEnabled ? "on" : ""}`}
858857
onClick={onTogglePoolEnabled}
859858
title={poolEnabled ? t("anthropicPool.on") : t("anthropicPool.off")}
860859
aria-pressed={poolEnabled}
861860
>
862-
<span className="toggle-knob" style={{ width: "12px", height: "12px", top: "2px", left: poolEnabled ? "16px" : "2px" }} />
861+
<span className="toggle-knob" />
863862
</button>
864863
)}
865864
{poolEnabled && onSelectPoolStrategy && (

0 commit comments

Comments
 (0)