Skip to content

Commit

Permalink
Hide split view separator when hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong committed Dec 18, 2024
1 parent a157e86 commit 719abab
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 @@ -350,7 +350,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 719abab

Please sign in to comment.