From 8f49572f8534fa861917c7836134d02bf1f1dc9f Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 21 Oct 2024 15:07:10 +0800 Subject: [PATCH] chore: from marketplace tilte ui --- .../block-selector/market-place-plugin/item.tsx | 2 +- .../block-selector/market-place-plugin/list.tsx | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/web/app/components/workflow/block-selector/market-place-plugin/item.tsx b/web/app/components/workflow/block-selector/market-place-plugin/item.tsx index 725535135c..8d3dff4cc6 100644 --- a/web/app/components/workflow/block-selector/market-place-plugin/item.tsx +++ b/web/app/components/workflow/block-selector/market-place-plugin/item.tsx @@ -26,7 +26,7 @@ const Item: FC = ({ const { locale } = useContext(I18n) return ( -
+
@@ -26,11 +27,11 @@ const List = ({ const stickyClassName = useMemo(() => { switch (scrollPosition) { case ScrollPosition.aboveTheWrap: - return 'top-0 shadow-md bg-white' + return 'top-0 h-9 pt-3 pb-2 shadow-xs bg-components-panel-bg-blur' case ScrollPosition.showing: - return 'bottom-0' + return 'bottom-0 pt-3 pb-1' case ScrollPosition.belowTheWrap: - return 'bottom-0 border-t border-gray-500 bg-white text-blue-500' + return 'bottom-0 items-center rounded-b-xl border-t border-[0.5px] border-components-panel-border bg-components-panel-bg-blur text-blue-500 shadow-lg text-text-accent-light-mode-only cursor-pointer' } }, [scrollPosition]) @@ -41,8 +42,12 @@ const List = ({ return ( <>
- {t('plugin.fromMarketplace')} + className={cn('sticky z-10 flex h-8 px-4 py-1 text-text-primary system-sm-medium', stickyClassName)} + > + {t('plugin.fromMarketplace')} + {/* {scrollPosition === ScrollPosition.belowTheWrap && ( + + )} */}
{list.map((item, index) => (