From 7140bf9180cc1b936c34804dfc9e6475c257e53c Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Thu, 14 Nov 2024 10:06:23 +1300 Subject: [PATCH] [NTP Search]: Don't be wider than the page --- .../brave_new_tab_ui/components/search/SearchPlaceholder.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/brave_new_tab_ui/components/search/SearchPlaceholder.tsx b/components/brave_new_tab_ui/components/search/SearchPlaceholder.tsx index 179457d72a53..f8159c6b3132 100644 --- a/components/brave_new_tab_ui/components/search/SearchPlaceholder.tsx +++ b/components/brave_new_tab_ui/components/search/SearchPlaceholder.tsx @@ -42,11 +42,14 @@ const MenuButton = styled(Button)` ` const PlaceholderContainer = styled.div` + align-self: center; position: relative; border-radius: ${searchBoxRadius}; box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.05); + + max-width: calc(100vw - 24px); &:hover ${MenuContainer} { transition-delay: 0s;