Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm

Issue 2707753003: Shrink to fit the label on ReadingListToolbar (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
diff --git a/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm b/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
index 838ccc552947b321bab6fba69223c273c46d2c6e..1ccd653ff0ead4c1ed839c32d395daafde912dd1 100644
--- a/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
+++ b/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
@@ -237,7 +237,8 @@ typedef NS_ENUM(NSInteger, ButtonPositioning) { Leading, Centered, Trailing };
UIButton* button = [UIButton buttonWithType:UIButtonTypeCustom];
button.contentEdgeInsets = UIEdgeInsetsMake(0, 8, 0, 8);
[button setTitle:title forState:UIControlStateNormal];
- button.titleLabel.numberOfLines = 0;
+ button.titleLabel.numberOfLines = 3;
+ button.titleLabel.adjustsFontSizeToFitWidth = YES;
button.backgroundColor = [UIColor whiteColor];
UIColor* textColor = isDestructive ? [[MDCPalette cr_redPalette] tint500]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698