Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: don't allow buttons to wrap text

Brad Barbin1193dbdcdbd3
diff --git a/packages/react/src/Badge.tsx b/packages/react/src/Badge.tsx
index 58da391ced..f3ee13cacd 100644
--- a/packages/react/src/Badge.tsx
+++ b/packages/react/src/Badge.tsx
@@ -10,7 +10,7 @@ import { LuX } from "react-icons/lu";
import { cn } from "./utils/cn";
const badgeVariants = cva(
- "inline-flex items-center rounded-md px-2 min-h-[1.25rem] font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 uppercase font-bold text-[11px] truncate tracking-tight",
+ "inline-flex items-center rounded-md px-2 min-h-[1.25rem] font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 uppercase font-bold text-[11px] truncate tracking-tight whitespace-nowrap",
{
variants: {
variant: {
diff --git a/packages/react/src/Button.tsx b/packages/react/src/Button.tsx
index 636ce34282..c43d1a0662 100644
--- a/packages/react/src/Button.tsx
+++ b/packages/react/src/Button.tsx
@@ -9,7 +9,7 @@ import { cn } from "./utils/cn";
export const buttonVariants = cva(
[
"relative font-medium shrink-0 group inline-flex items-center justify-center select-none transform-gpu initial:border-none disabled:opacity-50",
- "focus:!outline-none focus:!ring-0 active:!outline-none active:!ring-0",
+ "focus:!outline-none focus:!ring-0 active:!outline-none active:!ring-0 whitespace-nowrap",
"after:pointer-events-none after:absolute after:-inset-[3px] after:rounded-lg after:border after:border-blue-500 after:opacity-0 after:ring-2 after:ring-blue-500/20 after:transition-opacity focus-visible:after:opacity-100 active:after:opacity-0",
"before:pointer-events-none before:bg-gradient-to-b before:transition-opacity before:from-white/[0.12] before:absolute before:inset-0 before:z-[1] before:rounded before:opacity-0",
],