From 5d8131e211f88ab4cfc84a87d5c626509ffe23c8 Mon Sep 17 00:00:00 2001 From: martylukyy <35452459+martylukyy@users.noreply.github.com> Date: Wed, 18 Jan 2023 22:10:48 +0100 Subject: [PATCH] fix(web): filters list desktop and mobile friendly (#659) changed the resolution response from sm (640px) to 768px (md) for the indexer column compacted the filter lines while maintaining the padding to the border when a filter name spans over multiple lines span the filter name over the full width until the next div fixed a duplicate display property adjusted the width of the indexer and sort listbox for show the full values. (widths for both are uniform) adjusted padding of indexer listbox entries --- web/src/screens/filters/list.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/screens/filters/list.tsx b/web/src/screens/filters/list.tsx index 053a4fd..1856968 100644 --- a/web/src/screens/filters/list.tsx +++ b/web/src/screens/filters/list.tsx @@ -149,7 +149,7 @@ function FilterList({ toggleCreateFilter }: any) {
-
+
@@ -390,7 +390,7 @@ function FilterListItem({ filter, idx }: FilterListItemProps) {
  • -
    - +
    +
    - + @@ -460,7 +460,7 @@ interface IndexerTagProps { const IndexerTag: FC = ({ indexer }) => ( {indexer.name} @@ -537,7 +537,7 @@ const ListboxFilter = ({ leaveTo="opacity-0" > {children} @@ -590,7 +590,7 @@ interface FilterOptionProps { const FilterOption = ({ label, value }: FilterOptionProps) => ( classNames( - "cursor-pointer select-none relative py-2 pl-10 pr-4", + "cursor-pointer select-none relative py-2 px-4", active ? "text-black dark:text-gray-200 bg-gray-100 dark:bg-gray-900" : "text-gray-700 dark:text-gray-400" )} value={value}