Fix issue description overflow with break-words and overflow-hidden
Long unbroken text (stack traces, file paths, URLs) in issue descriptions could overflow the container. Add break-words to MarkdownBody and overflow-hidden to InlineEditor display wrapper. Fixes PAP-476 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
2efc3a3ef6
commit
1f204e4d76
2 changed files with 2 additions and 2 deletions
|
|
@ -132,7 +132,7 @@ export function InlineEditor({
|
|||
return (
|
||||
<DisplayTag
|
||||
className={cn(
|
||||
"cursor-pointer rounded hover:bg-accent/50 transition-colors",
|
||||
"cursor-pointer rounded hover:bg-accent/50 transition-colors overflow-hidden",
|
||||
pad,
|
||||
!value && "text-muted-foreground italic",
|
||||
className
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ export function MarkdownBody({ children, className }: MarkdownBodyProps) {
|
|||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"paperclip-markdown prose prose-sm max-w-none prose-pre:whitespace-pre-wrap prose-pre:break-words prose-code:break-all",
|
||||
"paperclip-markdown prose prose-sm max-w-none break-words overflow-hidden prose-pre:whitespace-pre-wrap prose-pre:break-words prose-code:break-all",
|
||||
theme === "dark" && "prose-invert",
|
||||
className,
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue