mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: prevent badge text wrapping (#18396)
Closes https://github.com/coder/coder/issues/17927
This commit is contained in:
@@ -8,8 +8,11 @@ import { forwardRef } from "react";
|
||||
import { cn } from "utils/cn";
|
||||
|
||||
const badgeVariants = cva(
|
||||
`inline-flex items-center rounded-md border px-2 py-1 transition-colors
|
||||
[&_svg]:pointer-events-none [&_svg]:pr-0.5 [&_svg]:py-0.5 [&_svg]:mr-0.5`,
|
||||
`
|
||||
inline-flex items-center rounded-md border px-2 py-1 text-nowrap
|
||||
transition-colors
|
||||
[&_svg]:pointer-events-none [&_svg]:pr-0.5 [&_svg]:py-0.5 [&_svg]:mr-0.5
|
||||
`,
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
|
||||
Reference in New Issue
Block a user