The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(abliterate): the result counts stay on one line
purple40fa5ee36e1a
diff --git a/src/components/models/RemoveRefusalsDialog.tsx b/src/components/models/RemoveRefusalsDialog.tsxindex ed27e219..bcb3e25c 100644--- a/src/components/models/RemoveRefusalsDialog.tsx+++ b/src/components/models/RemoveRefusalsDialog.tsx@@ -531,8 +531,9 @@ function ResultTable({ r }: { r: RunRecord }) {{label}{hint && <span className={`block t-micro ${HINWEIS_TEXT.ruhig}`}>{hint}</span>}</td>- <td className="pr-3 py-0.5 text-right font-mono text-gray-800 dark:text-gray-100">{a}</td>- <td className="py-0.5 text-right font-mono text-gray-900 dark:text-white">{b}</td>+ {/* "40 of 50" stays on one line; the long hints wrap instead (3.0.9, Mac). */}+ <td className="pr-3 py-0.5 text-right font-mono whitespace-nowrap text-gray-800 dark:text-gray-100">{a}</td>+ <td className="py-0.5 text-right font-mono whitespace-nowrap text-gray-900 dark:text-white">{b}</td></tr>)const of = (c: Check | null, k: 'refusals' | 'falseAlarms') => (c ? `${c[k]} of ${c.n}` : '–')diff --git a/src/components/models/__tests__/remove-refusals-dialog.test.tsx b/src/components/models/__tests__/remove-refusals-dialog.test.tsxindex 96c0a490..e0234856 100644--- a/src/components/models/__tests__/remove-refusals-dialog.test.tsx+++ b/src/components/models/__tests__/remove-refusals-dialog.test.tsx@@ -217,6 +217,10 @@ describe('during and after', () => {const table = await screen.findByTestId('remove-refusals-result')expect(table.textContent).toContain('3 of 200')expect(table.textContent).toContain('1 answer turned wrong, 0 answers turned right (-1 of 200): within chance')+ // the counts never break between "of" and the total+ const cells = [...table.querySelectorAll('td.font-mono')]+ expect(cells.length).toBeGreaterThan(0)+ for (const c of cells) expect(c.className).toContain('whitespace-nowrap')})it('the result card compares original and copy, and Use loads the copy', async () => {