fix(mobile): trim the note wrap classes to one rule and cover the kept line breaks

overflow-wrap:anywhere alone lets a long URL wrap inside a flex row; break-words
is overridden by it and word-break:break-word is deprecated. MarkdownText already
gets the rule from .collab-note-md, so its call sites drop the duplicate.
This commit is contained in:
Maurice
2026-10-04 13:40:49 +02:00
parent a9c78f680e
commit 5bcb377b9c
6 changed files with 21 additions and 10 deletions
@@ -28,7 +28,7 @@ export default function MarkdownText({ children, className = '', clamp = false }
}) {
return (
<div
className={`collab-note-md break-words [overflow-wrap:anywhere] [word-break:break-word] ${clamp ? 'truncate ' : ''}${className}`}
className={`collab-note-md ${clamp ? 'truncate ' : ''}${className}`}
style={clamp ? { maxHeight: '1.2em', lineHeight: 1.2 } : undefined}
>
<Markdown