Settings: let the shared-auth buttons wrap inside the sidebar

Re-authenticate, Revoke and Check snapshot images are each nowrap and
together wider than the settings sidebar, so the last one ran outside
its container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 06:41:43 -07:00
co-authored by Claude Opus 5.5
parent 292fc907fb
commit ece0d74afb
2 changed files with 12 additions and 1 deletions
@@ -140,6 +140,17 @@ describe("SharedAuthSettings", () => {
await waitFor(() => expect(hasClaudeToken).toHaveBeenCalled());
});
it("lets the action buttons wrap instead of running out of the sidebar", async () => {
// Re-authenticate, Revoke and Check snapshot images are each nowrap, and
// together they are wider than the settings sidebar.
projects = [running()];
hasClaudeToken.mockResolvedValue(true);
render(<SharedAuthSettings />);
const sweep = await screen.findByTestId("shared-auth-sweep");
expect(sweep.parentElement).toHaveClass("flex-wrap");
});
it("enables Authenticate once a container is running", async () => {
projects = [running()];
render(<SharedAuthSettings />);
@@ -283,7 +283,7 @@ export default function SharedAuthSettings() {
</div>
)}
<div className="flex items-center gap-2">
<div className="flex flex-wrap items-center gap-2">
<Button
size="md"
variant="primary"