fix: Various UX issues with search filters

This commit is contained in:
Tom Moor committed 2025-03-05 23:22:45 -05:00
1 parent c89535426b
commit fa3a3da7c8
4 files changed
+10 -18

No files matched your search

+1 -1
View File
@@ -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;
`;
+2 -6
View File
@@ -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)`
@@ -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;
@@ -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)`