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 authored and muliswilliam committed Mar 16, 2022
1 parent 5502170 commit cee00ac
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 cee00ac

Please sign in to comment.