mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Fix: truncate pills if they are too long
This commit is contained in:
@@ -125,6 +125,8 @@ class PillTextAttachment: NSTextAttachment {
|
||||
width += 2 * sizes.horizontalMargin
|
||||
}
|
||||
|
||||
width = min(width, data.maxWidth)
|
||||
|
||||
return CGSize(width: width,
|
||||
height: sizes.pillHeight)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user