From dbde0442139debe9a4c66c877ce6c900c5ab1e17 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Sun, 10 Aug 2025 14:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B1=20style:=20Hide=20vendor=20introdu?= =?UTF-8?q?ction=20on=20mobile=20devices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: • Updated `PricingTopSection.jsx` to conditionally render `PricingVendorIntroWithSkeleton` only when `isMobile` is false. Details: 1. Wrapped vendor-intro block in `!isMobile` check, preventing unnecessary content on small screens. 2. Kept desktop experience unchanged; no impact on other features. 3. Lint check passed with no new issues. Result: Cleaner mobile UI with improved performance and visual focus. --- .../layout/header/PricingTopSection.jsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx b/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx index ed66120a..1a4c301a 100644 --- a/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx +++ b/web/src/components/table/model-pricing/layout/header/PricingTopSection.jsx @@ -50,7 +50,7 @@ const PricingTopSection = ({ onCompositionEnd={handleCompositionEnd} onChange={handleChange} showClear - className="!bg-transparent" + style={{ backgroundColor: 'transparent' }} /> @@ -82,14 +82,16 @@ const PricingTopSection = ({ return ( <> - {/* 供应商介绍区域(含骨架屏) */} - + {/* 供应商介绍区域(桌面端显示) */} + {!isMobile && ( + + )} {/* 搜索和操作区域 */} {SearchAndActions}