[ios] Fix long strings in search (#1146)

Fixes #1145

Reviewed-on: https://codeberg.org/comaps/comaps/pulls/1146
Reviewed-by: Yannik Bloscheck <yannikbloscheck@noreply.codeberg.org>

Signed-off-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
Co-authored-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
Co-committed-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
This commit is contained in:
matheusgomesms
2025-07-29 12:46:24 +02:00
committed by Yannik Bloscheck
parent bb5da20fec
commit a08f3df3e6

View File

@@ -71,15 +71,16 @@ final class PlaceholderView: UIView {
titleLabel.text = title
titleLabel.setFontStyle(.medium16, color: .blackPrimary)
titleLabel.textAlignment = .center
titleLabel.numberOfLines = 0
subtitleLabel.text = subtitle
subtitleLabel.setFontStyle(.regular14, color: .blackSecondary)
subtitleLabel.textAlignment = .center
subtitleLabel.isHidden = subtitle == nil
subtitleLabel.numberOfLines = 2
subtitleLabel.numberOfLines = 0
stackView.axis = .vertical
stackView.alignment = .center
stackView.alignment = .fill
stackView.spacing = 8
}