Skip to content

Commit d07161d

Browse files
authored
fix(ui): align hidden output badge with source badges (#1254)
- Remove font-mono from "Cell hidden" badge so it uses the UI font - Match hidden output badge size (text-xs → text-sm) and alignment (add mt-0.5, pl-6) with hidden source badges
1 parent 4898f66 commit d07161d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/notebook/src/components/CodeCell.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export const CodeCell = memo(function CodeCell({
314314
}
315315
}}
316316
className={cn(
317-
"inline-flex items-center gap-1 px-2 py-0.5 text-sm font-mono text-muted-foreground hover:text-foreground bg-muted/50 hover:bg-muted rounded transition-colors",
317+
"inline-flex items-center gap-1 px-2 py-0.5 text-sm text-muted-foreground hover:text-foreground bg-muted/50 hover:bg-muted rounded transition-colors",
318318
(isExecuting || isGroupExecuting) && "animate-pulse",
319319
)}
320320
title={
@@ -368,11 +368,11 @@ export const CodeCell = memo(function CodeCell({
368368
}
369369
outputContent={
370370
isOutputsHidden && cell.outputs.length > 0 ? (
371-
<div className="flex items-center justify-start">
371+
<div className="flex items-center justify-start mt-0.5 pl-6">
372372
<button
373373
type="button"
374374
onClick={() => onToggleOutputsHidden?.(false)}
375-
className="inline-flex items-center gap-1 px-2 py-0.5 text-xs text-muted-foreground hover:text-foreground bg-muted/50 hover:bg-muted rounded transition-colors"
375+
className="inline-flex items-center gap-1 px-2 py-0.5 text-sm text-muted-foreground hover:text-foreground bg-muted/50 hover:bg-muted rounded transition-colors"
376376
title="Show outputs"
377377
>
378378
<span>

0 commit comments

Comments
 (0)