Skip to content

Commit

Permalink
Fixed sidebar item add bubble header text is truncated
Browse files Browse the repository at this point in the history
fix brave/brave-browser#21597

In some languages, header text is truncated due to long translated
message. To prevent this, header label is set as multiline.
  • Loading branch information
simonhong committed Mar 14, 2022
1 parent 6a60769 commit 4b965b8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ void SidebarAddItemBubbleDelegateView::AddChildViews() {
}
header->SetAutoColorReadabilityEnabled(false);
header->SetPreferredSize(kAddItemBubbleEntrySize);
header->SetMultiLine(true);
constexpr gfx::Insets kHeaderInsets{10, 34, 4, 8};
header->SetBorder(views::CreateEmptyBorder(kHeaderInsets));
header->SetHorizontalAlignment(gfx::ALIGN_LEFT);
Expand Down

0 comments on commit 4b965b8

Please sign in to comment.