diff --git a/patches/helium/ui/layout/zen-mode.patch b/patches/helium/ui/layout/zen-mode.patch index e8659dc6..4ba59071 100644 --- a/patches/helium/ui/layout/zen-mode.patch +++ b/patches/helium/ui/layout/zen-mode.patch @@ -2413,3 +2413,23 @@ ToastId::kImageCopied, ToastSpecification::Builder(features::IsRoundedIconsEnabled() ? kContentCopyIcon +--- a/chrome/browser/ui/views/side_panel/side_panel.cc ++++ b/chrome/browser/ui/views/side_panel/side_panel.cc +@@ -83,12 +83,15 @@ gfx::RoundedCornersF GetContentRoundedCo + side_panel->GetWidget() && side_panel->GetWidget()->IsFullscreen(); + const int window_edge_radius = + is_fullscreen ? generic_radius : GetPaddedFrameRadius(); +- const bool vertical_tabstrip_on_panel_side = ++ const bool vertical_tabstrip_touches_window_edge = + browser_view->ShouldDrawVerticalTabStrip() && ++ (!browser_view->IsZenModeEnabledForLayout() || ++ browser_view->IsZenModeSideChromePinned()) && + (browser_view->IsVerticalTabStripRightAligned() == + side_panel->IsRightAligned()); + const int lower_window_edge_radius = +- !vertical_tabstrip_on_panel_side ? window_edge_radius : generic_radius; ++ vertical_tabstrip_touches_window_edge ? generic_radius ++ : window_edge_radius; + + return side_panel->IsRightAligned() + ? gfx::RoundedCornersF(generic_radius, generic_radius,