fix(mobile): prevent layout breaking from long unbroken text in notes

This commit is contained in:
Diogo Mendes
2026-10-02 10:18:21 -03:00
committed by Maurice
parent a856c68f87
commit a9c78f680e
9 changed files with 19 additions and 17 deletions
@@ -28,7 +28,7 @@ export default function MarkdownText({ children, className = '', clamp = false }
}) {
return (
<div
className={`collab-note-md ${clamp ? 'truncate ' : ''}${className}`}
className={`collab-note-md break-words [overflow-wrap:anywhere] [word-break:break-word] ${clamp ? 'truncate ' : ''}${className}`}
style={clamp ? { maxHeight: '1.2em', lineHeight: 1.2 } : undefined}
>
<Markdown