Fix: truncate pills if they are too long

This commit is contained in:
Nicolas Mauri
2023-03-23 12:25:51 +01:00
parent 760888b8ed
commit 2fdb811a1c
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)
}