fix: reduce clarification context font size (#2659)

This commit is contained in:
Carlos Florêncio
2026-08-14 14:49:07 +01:00
committed by GitHub
parent 290fd2dc4e
commit cb0c10aa9f
3 changed files with 5 additions and 3 deletions
@@ -58,10 +58,11 @@ function workspaceSettings(
async function expectRandomUuidPresetId() {
const uuid = "123e4567-e89b-42d3-a456-426614174000";
vi.spyOn(globalThis.crypto, "randomUUID").mockReturnValue(uuid);
vi.mocked(fetchGitHubWorkspaceSettings).mockResolvedValue(workspaceSettings());
const existing = { ...valid, id: "p_existing" };
vi.mocked(fetchGitHubWorkspaceSettings).mockResolvedValue(workspaceSettings([existing]));
vi.mocked(updateGitHubWorkspaceSettings).mockResolvedValue(workspaceSettings());
const { result } = renderHook(() => useSavedPresets(WORKSPACE_ID));
await waitFor(() => expect(result.current.presets).toEqual([]));
await waitFor(() => expect(result.current.presets).toEqual([existing]));
let created: SavedPreset | null = null;
await act(async () => {
@@ -597,7 +597,7 @@ export function ClarificationInputOverlay({
{sharedContext && (
<div
data-testid="clarification-context"
className="mx-4 mt-3 mb-2 break-words whitespace-pre-wrap"
className="mx-4 mt-3 mb-2 break-words whitespace-pre-wrap text-[13px]"
>
{sharedContext}
</div>
@@ -98,6 +98,7 @@ test.describe("Mobile clarification multiline answer", () => {
await expect(context).toHaveText(
"Picking the foundational stack: answer all three so we can move forward.",
);
await expect(context).toHaveCSS("font-size", "13px");
await expect(context).toHaveCSS("margin-top", "12px");
await expect(context).toHaveCSS("padding", "0px");
await expect(context).toHaveCSS("border-width", "0px");