mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 10:08:29 +02:00
Correctly wrap small dialog text
This commit is contained in:
@@ -66,6 +66,7 @@ export function Dialog({
|
|||||||
className={classNames(
|
className={classNames(
|
||||||
className,
|
className,
|
||||||
'grid grid-rows-[auto_auto_minmax(0,1fr)]',
|
'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',
|
'relative bg-background pointer-events-auto',
|
||||||
'rounded-lg',
|
'rounded-lg',
|
||||||
'border border-background-highlight-secondary shadow-lg shadow-[rgba(0,0,0,0.1)]',
|
'border border-background-highlight-secondary shadow-lg shadow-[rgba(0,0,0,0.1)]',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export function InlineCode({ className, ...props }: HTMLAttributes<HTMLSpanEleme
|
|||||||
className={classNames(
|
className={classNames(
|
||||||
className,
|
className,
|
||||||
'font-mono text-shrink bg-background-highlight-secondary border border-background-highlight-secondary',
|
'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}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user