From 8bcc89f8fc1345e9c9aba6c11e3dc4971a8f5a47 Mon Sep 17 00:00:00 2001 From: JimmFly <447268514@qq.com> Date: Tue, 9 Apr 2024 04:05:18 +0000 Subject: [PATCH] feat(core): add responsive styles to collection filter (#6486) https://github.com/toeverything/AFFiNE/assets/102217452/caa4c09b-e1fd-4bd0-a504-535925607e2f --- .../components/page-list/filter/condition.tsx | 32 +++++++++-------- .../filter/filter-tag-translation.tsx | 10 +++++- .../components/page-list/filter/index.css.ts | 25 +++++++++++++- .../page-list/filter/multi-select.css.ts | 5 +++ .../page-list/filter/multi-select.tsx | 30 ++++++++++------ .../view/edit-collection/rules-mode.tsx | 34 ++++++++++++------- 6 files changed, 97 insertions(+), 39 deletions(-) diff --git a/packages/frontend/core/src/components/page-list/filter/condition.tsx b/packages/frontend/core/src/components/page-list/filter/condition.tsx index 2ba089751..5987d6bdb 100644 --- a/packages/frontend/core/src/components/page-list/filter/condition.tsx +++ b/packages/frontend/core/src/components/page-list/filter/condition.tsx @@ -1,5 +1,6 @@ -import { Menu, MenuItem } from '@affine/component'; +import { Menu, MenuItem, Tooltip } from '@affine/component'; import type { Filter, Literal, PropertiesMeta } from '@affine/env/filter'; +import clsx from 'clsx'; import type { ReactNode } from 'react'; import { useMemo } from 'react'; @@ -45,14 +46,7 @@ export const Condition = ({ (({ ast }) => { const args = renderArgs(value, onChange, data.type); return ( -