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 length is not fixed.
  • Loading branch information
simonhong committed Mar 15, 2022
1 parent 3bd67a9 commit a5912f6
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ void SidebarAddItemBubbleDelegateView::AddChildViews() {
BraveThemeProperties::COLOR_SIDEBAR_ADD_BUBBLE_HEADER_TEXT));
}
header->SetAutoColorReadabilityEnabled(false);
header->SetPreferredSize(kAddItemBubbleEntrySize);
constexpr gfx::Insets kHeaderInsets{10, 34, 4, 8};
header->SetBorder(views::CreateEmptyBorder(kHeaderInsets));
header->SetHorizontalAlignment(gfx::ALIGN_LEFT);
Expand Down

0 comments on commit a5912f6

Please sign in to comment.