Skip to content

Commit

Permalink
Adjusted split view tab's bounds/padding in vertical tab
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong committed Dec 17, 2024
1 parent 15ec4f0 commit e505da6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions browser/ui/views/tabs/brave_tab_style_views.inc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ SkPath BraveVerticalTabStyle::GetPath(
if (IsTabTiled(tab()) && path_type != TabStyle::PathType::kHitTest) {
if (ShouldShowVerticalTabs()) {
constexpr auto kPaddingForVerticalTab = 4;
tab_top += scale * kPaddingForVerticalTab;
tab_bottom -= scale * kPaddingForVerticalTab;
tab()->controller()->IsFirstTabInTile(tab())
? tab_top += scale* kPaddingForVerticalTab
: tab_bottom -= scale * kPaddingForVerticalTab;
tab_left += scale * kPaddingForVerticalTab;
tab_right -= scale * kPaddingForVerticalTab;
} else {
Expand Down

0 comments on commit e505da6

Please sign in to comment.