From 5972eb2232863b4e720f39b57cabec9181929fc5 Mon Sep 17 00:00:00 2001 From: CuriousCorrelation Date: Mon, 11 Jul 2022 18:07:17 +0530 Subject: [PATCH] Add `InputSearch` styling --- app/components/FilterOptions.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index c7e257947c..414ebca3d5 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -110,4 +110,23 @@ const Wrapper = styled.div` margin-right: 8px; `; +// `position: sticky` leaves a bit of space above the search box, +// which shows author names moving past behind it. +const StyledInputSearch = styled(InputSearch)` + position: absolute; + border: none; + top: 0; + z-index: 1; + ${Outline} { + border-top-style: unset; + border-right-style: unset; + border-left-style: unset; + border-radius: unset; + font-size: 14px; + input { + margin-left: 8px; + } + } +`; + export default FilterOptions;