diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index ba0a10a687..3f6a039197 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -231,6 +231,7 @@ const SearchInput = styled(Input)` border-radius: 0; border-bottom: 1px solid ${s("divider")}; background: ${s("menuBackground")}; + margin: 0; } ${NativeInput} { @@ -273,7 +274,6 @@ export const StyledButton = styled(Button)` `; const Icon = styled.div` - margin-right: 8px; width: 18px; height: 18px; `; diff --git a/app/scenes/Search/Search.tsx b/app/scenes/Search/Search.tsx index c06e3131fe..e39cf6f97e 100644 --- a/app/scenes/Search/Search.tsx +++ b/app/scenes/Search/Search.tsx @@ -8,7 +8,7 @@ import styled from "styled-components"; import breakpoint from "styled-components-breakpoint"; import { v4 as uuidv4 } from "uuid"; import { Pagination } from "@shared/constants"; -import { hover, hideScrollbars } from "@shared/styles"; +import { hideScrollbars } from "@shared/styles"; import { DateFilter as TDateFilter, StatusFilter as TStatusFilter, @@ -375,21 +375,17 @@ const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)` const Filters = styled(Flex)` margin-bottom: 12px; - opacity: 0.85; transition: opacity 100ms ease-in-out; overflow-y: hidden; overflow-x: auto; padding: 8px 0; gap: 8px; + ${hideScrollbars()} ${breakpoint("tablet")` padding: 0; `}; - - &: ${hover} { - opacity: 1; - } `; const SearchTitlesFilter = styled(Switch)` diff --git a/app/scenes/Search/components/RecentSearchListItem.tsx b/app/scenes/Search/components/RecentSearchListItem.tsx index c73a5198c5..32256391e9 100644 --- a/app/scenes/Search/components/RecentSearchListItem.tsx +++ b/app/scenes/Search/components/RecentSearchListItem.tsx @@ -51,7 +51,9 @@ const RemoveButton = styled(NudeButton)` opacity: 0; color: ${s("textTertiary")}; - &:hover { + &:focus, + &:${hover} { + opacity: 1; color: ${s("text")}; } `; @@ -61,17 +63,11 @@ const RecentSearch = styled(Link)` justify-content: space-between; color: ${s("textSecondary")}; cursor: var(--pointer); - padding: 1px 4px; + padding: 1px 8px; border-radius: 4px; - position: relative; + line-height: 24px; font-size: 14px; - - &:before { - content: "ยท"; - color: ${s("textTertiary")}; - position: absolute; - left: -8px; - } + margin: 0 -8px; &:focus-visible { outline: none; diff --git a/app/scenes/Search/components/RecentSearches.tsx b/app/scenes/Search/components/RecentSearches.tsx index 3a5886fa9f..f9f72b0516 100644 --- a/app/scenes/Search/components/RecentSearches.tsx +++ b/app/scenes/Search/components/RecentSearches.tsx @@ -59,7 +59,7 @@ const Heading = styled.h2` font-size: 14px; line-height: 1.5; color: ${s("textSecondary")}; - margin-bottom: 0; + margin: 12px 0 0; `; const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)`