Skip to content

Commit

Permalink
Merge pull request #27055 from brave/split_view_separator
Browse files Browse the repository at this point in the history
Hide split view separator when hovered
  • Loading branch information
simonhong authored Jan 5, 2025
2 parents b3e4e4b + 719abab commit e83c4ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/ui/views/tabs/brave_tab_container.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ void BraveTabContainer::PaintBoundingBoxForTile(gfx::Canvas& canvas,
auto active_tab_handle =
tab_strip_model->GetTabHandleAt(tab_strip_model->active_index());
if (!is_vertical_tab && active_tab_handle != tile.first &&
active_tab_handle != tile.second) {
active_tab_handle != tile.second &&
!GetTabAtModelIndex(tab1_index)->IsMouseHovered() &&
!GetTabAtModelIndex(tab2_index)->IsMouseHovered()) {
constexpr int kSplitViewSeparatorHeight = 24;
auto separator_top = bounding_rects.top_center();
CHECK_GT(bounding_rects.height(), kSplitViewSeparatorHeight);
Expand Down

0 comments on commit e83c4ea

Please sign in to comment.