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:
@@ -140,6 +140,17 @@ describe("SharedAuthSettings", () => {
|
|||||||
await waitFor(() => expect(hasClaudeToken).toHaveBeenCalled());
|
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 () => {
|
it("enables Authenticate once a container is running", async () => {
|
||||||
projects = [running()];
|
projects = [running()];
|
||||||
render(<SharedAuthSettings />);
|
render(<SharedAuthSettings />);
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ export default function SharedAuthSettings() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
size="md"
|
size="md"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
|
|||||||
Reference in New Issue
Block a user