Correctly wrap small dialog text

This commit is contained in:
Gregory Schier
2024-08-09 14:28:20 -07:00
parent 877f9ce15a
commit fbaf750c91
2 changed files with 2 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ export function Dialog({
className={classNames(
className,
'grid grid-rows-[auto_auto_minmax(0,1fr)]',
'grid-cols-1', // must be here for inline code blocks to correctly break words
'relative bg-background pointer-events-auto',
'rounded-lg',
'border border-background-highlight-secondary shadow-lg shadow-[rgba(0,0,0,0.1)]',

View File

@@ -7,7 +7,7 @@ export function InlineCode({ className, ...props }: HTMLAttributes<HTMLSpanEleme
className={classNames(
className,
'font-mono text-shrink bg-background-highlight-secondary border border-background-highlight-secondary',
'px-1.5 py-0.5 rounded text-fg shadow-inner',
'px-1.5 py-0.5 rounded text-fg shadow-inner break-words',
)}
{...props}
/>