From a35371dc6074999f572b272062642bc4bdbabd3f Mon Sep 17 00:00:00 2001 From: marcelines Date: Wed, 7 Jun 2023 14:13:21 +0100 Subject: [PATCH] feat: add correct alignment for filters depending on breakpoint --- .../table-issues/filters/filter-with-checkboxes.tsx | 9 ++++++++- .../src/pages/insights/workstreams/[workstream].tsx | 7 +++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx b/apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx index 2585af4d..9f3dad3b 100644 --- a/apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx +++ b/apps/website/src/components/table-issues/filters/filter-with-checkboxes.tsx @@ -4,6 +4,8 @@ import { Avatar, Button, Input, Text } from '@status-im/components' import { DropdownMenu } from '@status-im/components/src/dropdown-menu' import { DropdownIcon, SearchIcon } from '@status-im/icons' +import { useCurrentBreakpoint } from '@/hooks/use-current-breakpoint' + import { ColorCircle } from './components/color-circle' import type { ColorTokens } from '@tamagui/core' @@ -54,6 +56,8 @@ const FilterWithCheckboxes = (props: Props) => { const [selectedValues, setSelectedValues] = useState([]) const [isOpen, setIsOpen] = useState(false) + const currentBreakpoint = useCurrentBreakpoint() + return (
setIsOpen(!isOpen)}> @@ -72,7 +76,10 @@ const FilterWithCheckboxes = (props: Props) => { > {label} - +
{
-
+
- -
- +
+