From 719abab5bd34d06113537c53c93f447d1bdc2fa0 Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Wed, 18 Dec 2024 18:06:16 +0900 Subject: [PATCH] Hide split view separator when hovered fix https://github.com/brave/brave-browser/issues/42946 --- browser/ui/views/tabs/brave_tab_container.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/ui/views/tabs/brave_tab_container.cc b/browser/ui/views/tabs/brave_tab_container.cc index 7f3b57550c11..b2667015ba1c 100644 --- a/browser/ui/views/tabs/brave_tab_container.cc +++ b/browser/ui/views/tabs/brave_tab_container.cc @@ -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);