Fix: truncate pills if they are too long

This commit is contained in:
Nicolas Mauri
2023-03-23 12:25:51 +01:00
parent 6c2e55ad93
commit db3c399e8e
5 changed files with 22 additions and 7 deletions
@@ -125,6 +125,8 @@ class PillTextAttachment: NSTextAttachment {
width += 2 * sizes.horizontalMargin
}
width = min(width, data.maxWidth)
return CGSize(width: width,
height: sizes.pillHeight)
}