From 3133be3993dbe0c83e652b5700e15ae52397656a Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Mon, 27 Mar 2023 14:21:43 +1300 Subject: [PATCH] Fix placement of image attribution & customize button when showing the NTP SI Clickbox (#17764) Change row span when there are fewer rows --- components/brave_new_tab_ui/components/default/page/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/brave_new_tab_ui/components/default/page/index.tsx b/components/brave_new_tab_ui/components/default/page/index.tsx index dc5f7f0b76ae..178e3beb7e04 100644 --- a/components/brave_new_tab_ui/components/default/page/index.tsx +++ b/components/brave_new_tab_ui/components/default/page/index.tsx @@ -191,7 +191,7 @@ export const GridItemTopSites = styled('section')` export const GridItemSponsoredImageClickArea = styled.section<{ otherWidgetsHidden: boolean }>` grid-column: 2; - grid-row: 2 / span 3; + grid-row: 2 / span calc(var(--ntp-page-rows) - 1); height: calc(100% - 200px); width: 100%; position: relative;