From a08f3df3e6d93426da6e76af0da29ed8ecbae07e Mon Sep 17 00:00:00 2001 From: matheusgomesms Date: Tue, 29 Jul 2025 12:46:24 +0200 Subject: [PATCH] [ios] Fix long strings in search (#1146) Fixes #1145 Reviewed-on: https://codeberg.org/comaps/comaps/pulls/1146 Reviewed-by: Yannik Bloscheck Signed-off-by: matheusgomesms Co-authored-by: matheusgomesms Co-committed-by: matheusgomesms --- iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift b/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift index 802a298e4..d8a44a304 100644 --- a/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift +++ b/iphone/Maps/UI/Search/SearchOnMap/PlaceholderView.swift @@ -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 }