From 853b8286c9668fc1206c4abca94ff45fa843b48a Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Sun, 19 May 2024 10:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20unwanted=20text=20wrapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/table.tsx | 2 +- packages/ui/src/badge.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/table.tsx b/apps/web/src/components/table.tsx index df1abd8bc..341d088fb 100644 --- a/apps/web/src/components/table.tsx +++ b/apps/web/src/components/table.tsx @@ -76,7 +76,7 @@ export const Table = >(props: { ? header.getSize() : undefined, }} - className="text-muted-foreground h-9 border-b px-2.5 text-left text-xs font-normal" + className="text-muted-foreground h-9 whitespace-nowrap border-b px-2.5 text-left text-xs font-normal" > {header.isPlaceholder ? null diff --git a/packages/ui/src/badge.tsx b/packages/ui/src/badge.tsx index fa1bcc40f..97e7f2db3 100644 --- a/packages/ui/src/badge.tsx +++ b/packages/ui/src/badge.tsx @@ -4,7 +4,7 @@ import * as React from "react"; import { cn } from "./lib/utils"; const badgeVariants = cva( - "inline-flex group items-center rounded-full border justify-center text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", + "inline-flex group whitespace-nowrap items-center rounded-full border justify-center text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", { variants: { variant: {